Skip to content

Commit

Permalink
modification to path prefix for the codes that live in the src/ direc…
Browse files Browse the repository at this point in the history
…tory, ensuring that they're accessible within jedi-bundle.
  • Loading branch information
BenjaminTJohnson committed Aug 12, 2024
1 parent cf4fded commit bd26208
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export(EXPORT ${PROJECT_NAME}-config
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-targets.cmake"
)

set(CRTM_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(test)
include(CTest)

Expand All @@ -127,4 +129,7 @@ else()
message(STATUS "No build type specified, defaulting to Release.")
endif()

#export the CRTM_SOURCE_DIR for use in the test framework (ensures compatibility with jedi-bundle)


#set(crtm_LIBRARIES crtm)
8 changes: 4 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ list (APPEND SCoeff_Utils
SpcCoeff_NC2BIN
)
foreach(testtype IN LISTS SCoeff_Utils)
add_executable(${testtype} ${CMAKE_SOURCE_DIR}/src/Coefficients/SpcCoeff/${testtype}/${testtype}.f90)
add_executable(${testtype} ${CRTM_SOURCE_DIR}/src/Coefficients/SpcCoeff/${testtype}/${testtype}.f90)
target_link_libraries(${testtype} PRIVATE crtm)
endforeach()

Expand All @@ -309,7 +309,7 @@ list (APPEND ODAS_Utils
ODAS_NC2BIN
)
foreach(testtype IN LISTS ODAS_Utils)
add_executable(${testtype} ${CMAKE_SOURCE_DIR}/src/Coefficients/TauCoeff/ODAS/${testtype}/${testtype}.f90)
add_executable(${testtype} ${CRTM_SOURCE_DIR}/src/Coefficients/TauCoeff/ODAS/${testtype}/${testtype}.f90)
target_link_libraries(${testtype} PRIVATE crtm)
endforeach()

Expand All @@ -319,7 +319,7 @@ list (APPEND ODPS_Utils
ODPS_NC2BIN
)
foreach(testtype IN LISTS ODPS_Utils)
add_executable(${testtype} ${CMAKE_SOURCE_DIR}/src/Coefficients/TauCoeff/ODPS/${testtype}/${testtype}.f90)
add_executable(${testtype} ${CRTM_SOURCE_DIR}/src/Coefficients/TauCoeff/ODPS/${testtype}/${testtype}.f90)
target_link_libraries(${testtype} PRIVATE crtm)
endforeach()

Expand All @@ -330,7 +330,7 @@ list (APPEND CCoeff_Utils
CloudCoeff_Inspect
)
foreach(testtype IN LISTS CCoeff_Utils)
add_executable(${testtype} ${CMAKE_SOURCE_DIR}/src/Coefficients/CloudCoeff/${testtype}/${testtype}.f90)
add_executable(${testtype} ${CRTM_SOURCE_DIR}/src/Coefficients/CloudCoeff/${testtype}/${testtype}.f90)
target_link_libraries(${testtype} PRIVATE crtm)
endforeach()

Expand Down

0 comments on commit bd26208

Please sign in to comment.