diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt index e620272e9..d58998574 100644 --- a/applications/CMakeLists.txt +++ b/applications/CMakeLists.txt @@ -26,6 +26,7 @@ if(NOT ITK_DIR) set(ITK_DIR ${ITK_BINARY_DIR}/CMakeTmp) endif() find_package(ITK REQUIRED COMPONENTS ${ITK_MODULE_RTK_DEPENDS}) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif() diff --git a/examples/AddNoise/CMakeLists.txt b/examples/AddNoise/CMakeLists.txt index 435f1647f..e1305618d 100644 --- a/examples/AddNoise/CMakeLists.txt +++ b/examples/AddNoise/CMakeLists.txt @@ -5,6 +5,7 @@ project(AddNoise) # Find ITK with RTK find_package(ITK REQUIRED COMPONENTS RTK) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif() diff --git a/examples/ConjugateGradient/CMakeLists.txt b/examples/ConjugateGradient/CMakeLists.txt index 397dc6ff3..9e95fc610 100644 --- a/examples/ConjugateGradient/CMakeLists.txt +++ b/examples/ConjugateGradient/CMakeLists.txt @@ -5,6 +5,7 @@ project(ConjugateGradient) # Find ITK with RTK find_package(ITK REQUIRED COMPONENTS RTK) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif() diff --git a/examples/FirstReconstruction/CMakeLists.txt b/examples/FirstReconstruction/CMakeLists.txt index 4ff66f99e..485771773 100644 --- a/examples/FirstReconstruction/CMakeLists.txt +++ b/examples/FirstReconstruction/CMakeLists.txt @@ -5,6 +5,7 @@ project(FirstReconstruction) # Find ITK with RTK find_package(ITK REQUIRED COMPONENTS RTK) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif() diff --git a/examples/GeometricPhantom/CMakeLists.txt b/examples/GeometricPhantom/CMakeLists.txt index ab1a79dc1..d88a5b417 100644 --- a/examples/GeometricPhantom/CMakeLists.txt +++ b/examples/GeometricPhantom/CMakeLists.txt @@ -5,6 +5,7 @@ project(GeometricPhantom) # Find ITK with RTK find_package(ITK REQUIRED COMPONENTS RTK) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif() diff --git a/examples/InlineReconstruction/CMakeLists.txt b/examples/InlineReconstruction/CMakeLists.txt index b6053effd..356f39096 100644 --- a/examples/InlineReconstruction/CMakeLists.txt +++ b/examples/InlineReconstruction/CMakeLists.txt @@ -5,6 +5,7 @@ project(InlineReconstruction) # Find ITK with RTK find_package(ITK REQUIRED COMPONENTS RTK) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 81fe05e06..f06fff8b2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,6 +24,7 @@ find_package( ${ITK_MODULE_RTK_DEPENDS} ${RTK_TEST_DEPENDS} ) +include(itkVersion) if("${ITK_VERSION_MAJOR}" VERSION_LESS "6") include(${ITK_USE_FILE}) endif()