Skip to content

Commit

Permalink
Merge pull request #41 from Goddard-Fortran-Ecosystem/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mathomp4 authored Feb 5, 2019
2 parents bd1c780 + 57cae98 commit 4e2e5cd
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 36 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ endif(COMMAND cmake_policy)
set(PFUNIT "" CACHE PATH "(optional) path to installed testing framework")
if (PFUNIT)
set(CMAKE_Fortran_COMPILER ${FC})
project (gFTL Fortran)
project (gFTL
VERSION 1.01
LANGUAGES Fortran
)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_utils")
include(${CMAKE_Fortran_COMPILER_ID} RESULT_VARIABLE found)
Expand All @@ -15,7 +18,8 @@ if (PFUNIT)
else ()
project (gFTL
VERSION 1.0.1
LANGUAGES NONE)
LANGUAGES NONE
)
endif()

add_subdirectory(include)
Expand Down
2 changes: 1 addition & 1 deletion include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_subdirectory (templates)
add_subdirectory (types)

install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION . FILES_MATCHING PATTERN "*.inc")
file (COPY DIRECTORY . DESTINATION . FILES_MATCHING PATTERN "*.inc")
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DESTINATION . FILES_MATCHING PATTERN "*.inc")
1 change: 1 addition & 0 deletions include/templates/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ add_custom_target( template_macros ALL
DEPENDS ${depends}
)

file (COPY DIRECTORY . DESTINATION . FILES_MATCHING PATTERN "*.inc")


2 changes: 2 additions & 0 deletions include/types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ endforeach ()
add_custom_target (types ALL
DEPENDS ${depends}
)

file (COPY DIRECTORY . DESTINATION . FILES_MATCHING PATTERN "*.inc")
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ include_directories (${PFUNIT}/mod)
link_directories (${PFUNIT}/lib)

include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${FTL_SOURCE_DIR}/tests/shared)
include_directories (${FTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_SOURCE_DIR}/tests/shared)
include_directories (${gFTL_BINARY_DIR}/tests/shared)

include_directories (${CMAKE_CURRENT_BINARY_DIR}/Set)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/altSet)
Expand Down
2 changes: 1 addition & 1 deletion tests/Map/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${CMAKE_CURRENT_BINARY_DIR}/SUT)


include_directories(${FTL_BINARY_DIR}/tests/shared)
include_directories(${gFTL_BINARY_DIR}/tests/shared)
file(RELATIVE_PATH INCLUDE_RELATIVE_PATH_BIN
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/.)
Expand Down
6 changes: 3 additions & 3 deletions tests/Map/SUT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ set (instantiations
"deferredLengthString\;deferredLengthString\;free"
)

include_directories(${FTL_BINARY_DIR}/tests/shared)
include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories(${gFTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${PFUNIT}/mod)


Expand Down
8 changes: 4 additions & 4 deletions tests/Set/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ include_directories (${PFUNIT}/mod)
link_directories(${PFUNIT}/lib)

include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${FTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_BINARY_DIR}/tests/shared)

include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/SUT)



include_directories(${FTL_BINARY_DIR}/tests/shared)
include_directories(${gFTL_BINARY_DIR}/tests/shared)
# Use relative paths for includes so that CMake correctly
# detects the need to generate include files.
file(RELATIVE_PATH INCLUDE_RELATIVE_PATH_BIN
Expand Down
6 changes: 3 additions & 3 deletions tests/Set/SUT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include_directories (${PFUNIT}/mod)

include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories (${FTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/tests/shared)

set (instantiations

Expand Down
8 changes: 4 additions & 4 deletions tests/Vector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ include_directories (${PFUNIT}/mod)
link_directories (${PFUNIT}/lib)

include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories (${FTL_BINARY_DIR}/mod)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/mod)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/SUT)
include_directories (${FTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_BINARY_DIR}/tests/shared)

file (RELATIVE_PATH INCLUDE_RELATIVE_PATH_BIN
${CMAKE_CURRENT_SOURCE_DIR}
Expand Down
10 changes: 5 additions & 5 deletions tests/Vector/SUT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${PFUNIT}/mod)
include_directories (${FTL_BINARY_DIR}/mod)
include_directories(${FTL_BINARY_DIR}/tests/shared)
include_directories(${FTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/mod)
include_directories(${gFTL_BINARY_DIR}/tests/shared)
include_directories(${gFTL_SOURCE_DIR}/include)

set(src ${CMAKE_CURRENT_SOURCE_DIR})
set(bin ${CMAKE_CURRENT_BINARY_DIR})
Expand Down
2 changes: 1 addition & 1 deletion tests/Vector/vectorSUT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set (SRCS

set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -traceback -assume realloc_lhs")

include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${PFUNIT}/mod)

add_library(vectorSUT STATIC ${SRCS})
8 changes: 4 additions & 4 deletions tests/altSet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ include_directories (${PFUNIT}/mod)
link_directories(${PFUNIT}/lib)

include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${FTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_BINARY_DIR}/tests/shared)

include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/SUT)



include_directories(${FTL_BINARY_DIR}/tests/shared)
include_directories(${gFTL_BINARY_DIR}/tests/shared)
# Use relative paths for includes so that CMake correctly
# detects the need to generate include files.
file(RELATIVE_PATH INCLUDE_RELATIVE_PATH_BIN
Expand Down
6 changes: 3 additions & 3 deletions tests/altSet/SUT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include_directories (${PFUNIT}/mod)

include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
include_directories (${FTL_BINARY_DIR}/tests/shared)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/tests/shared)

set (instantiations

Expand Down
5 changes: 2 additions & 3 deletions tests/shared/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ set (SRCS
pFUnitSupplement.F90
)

include_directories (${FTL_SOURCE_DIR}/include)
include_directories (${FTL_BINARY_DIR}/include)
#include_directories (${FTL_BINARY_DIR}/mod)
include_directories (${gFTL_SOURCE_DIR}/include)
include_directories (${gFTL_BINARY_DIR}/include)
include_directories (${PFUNIT}/mod)

add_library(shared ${SRCS})

0 comments on commit 4e2e5cd

Please sign in to comment.