-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathitk-module.cmake
29 lines (25 loc) · 936 Bytes
/
itk-module.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# the top-level README is used for describing this module, just
# re-used it for documentation here
get_filename_component( MY_CURENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file( READ "${MY_CURENT_DIR}/README" DOCUMENTATION )
# ITK version 4.5 changed it from EXCLUDE_FROM_ALL to EXCLUDE_FROM_DEFAULT
set( _EXCLUDE "EXCLUDE_FROM_ALL" )
if (NOT "${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_MINOR_PATCH}" VERSION_LESS "4.5")
set( _EXCLUDE "EXCLUDE_FROM_DEFAULT" )
endif()
# itk_module() defines the module dependencies in ITKOBBLabelMap
# ITKOBBLabelMap depends on ITKCommon
# The testing module in ITKOBBLabelMap depends on ITKTestKernel
# and ITKMetaIO(besides ITKOBBLabelMap and ITKCore)
# define the dependencies of the include module and the tests
itk_module(ITKOBBLabelMap
DEPENDS
ITKCommon
ITKLabelMap
TEST_DEPENDS
ITKTestKernel
ITKMetaIO
DESCRIPTION
"${DOCUMENTATION}"
${_EXCLUDE}
)