Skip to content

Commit

Permalink
[CMake] try to handle include path if Gadgetron is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Mar 9, 2024
1 parent 6a21b86 commit b89a569
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data
Submodule data updated from ef407f to 5bd102
6 changes: 3 additions & 3 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ if ((NOT DISABLE_STIR) AND (NOT DISABLE_Gadgetron) AND (NOT DISABLE_Registration
MESSAGE(STATUS "Registration, ISMRMRD and STIR (with ITK) have been built.")
target_link_libraries(csirf PUBLIC iutilities csyn)
else()
MESSAGE(STATUS "Either Registration or ISMRMRD or STIR (with ITK) have not been built.")
MESSAGE(STATUS "Either Registration or ISMRMRD/Gadgetron or STIR (with ITK) have not been built.")
add_library(Syn syn_utilities.cpp)
target_include_directories(Syn PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>$<INSTALL_INTERFACE:include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>$<INSTALL_INTERFACE:include>"
)
target_include_directories(Syn PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>$<INSTALL_INTERFACE:include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../xGadgetron/cGadgetron/include/>$<INSTALL_INTERFACE:include>"
)
target_link_libraries(Syn PUBLIC cgadgetron cstir Reg)
target_link_libraries(csirf PUBLIC iutilities Syn)
Expand Down

0 comments on commit b89a569

Please sign in to comment.