Skip to content

Commit 43d5e91

Browse files
committed
ENH: Add support for building outside the ITK source tree.
1 parent 9769dd1 commit 43d5e91

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

CMakeLists.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
project( MinimalPathExtraction )
2-
set( MinimalPathExtraction_LIBRARIES MinimalPathExtraction )
3-
itk_module_impl()
1+
cmake_minimum_required(VERSION 2.8.9)
2+
project(MinimalPathExtraction)
3+
set(MinimalPathExtraction_LIBRARIES MinimalPathExtraction)
4+
5+
if(NOT ITK_SOURCE_DIR)
6+
find_package(ITK REQUIRED)
7+
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
8+
include(ITKModuleExternal)
9+
else()
10+
itk_module_impl()
11+
endif()

CTestConfig.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(CTEST_PROJECT_NAME "ITK")
2+
set(CTEST_NIGHTLY_START_TIME "1:00:00 UTC")
3+
4+
set(CTEST_DROP_METHOD "http")
5+
set(CTEST_DROP_SITE "open.cdash.org")
6+
set(CTEST_DROP_LOCATION "/submit.php?project=Insight")
7+
set(CTEST_DROP_SITE_CDASH TRUE)

0 commit comments

Comments
 (0)