Skip to content

Commit

Permalink
Merge pull request #26 from schuhschuh/fix-dependency-on-itk
Browse files Browse the repository at this point in the history
fix: Use system ITK installation if WITH_ITK=ON
  • Loading branch information
amakropoulos authored Dec 23, 2019
2 parents e6e1c2a + 6657427 commit 37a94ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions BasisProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ basis_project (
#<dependency>
OPTIONAL_DEPENDS
TBB{tbb}
ITK
#<optional-dependency>
TOOLS_DEPENDS
MIRTK{IO}
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ endif ()

mirtk_configure_module()

SUBDIRS(ThirdParty/ANTs)
INCLUDE(Atlases.cmake)
add_subdirectory(ThirdParty/ANTs)
include(Atlases.cmake)
3 changes: 3 additions & 0 deletions ThirdParty/ANTs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ PROJECT( N4 )
IF(NOT ITK_DIR)
INCLUDE(External_ITK.cmake)
SET(External_ITK 1)
MESSAGE(STATUS "Build ITK as external project for build of DrawEM::N4")
ELSE()
MESSAGE(STATUS "Use system-wide ITK installation for build of DrawEM::N4")
ENDIF()

# Set up ITK
Expand Down

0 comments on commit 37a94ad

Please sign in to comment.