-
Notifications
You must be signed in to change notification settings - Fork 5
/
itk-module.cmake
35 lines (33 loc) · 1.09 KB
/
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
30
31
32
33
34
35
# the top-level README is used for describing this module, just
# re-used it for documentation here
get_filename_component(MY_CURRENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(READ "${MY_CURRENT_DIR}/README.rst" DOCUMENTATION)
# itk_module() defines the module dependencies in
# SmoothingRecursiveYvvGaussianFilter
# The testing module in SmoothingRecursiveYvvGaussianFilter depends on
# ITKTestKernel
# By convention those modules outside of ITK are not prefixed with
# ITK.
# define the dependencies of the include module and the tests
set(ModuleName "SmoothingRecursiveYvvGaussianFilter")
if(ITK_USE_GPU)
set(${ModuleName}_GPU_DEPENDANCIES "ITKGPUSmoothing")
set(${ModuleName}_GPU_COMMON "ITKGPUCommon")
endif()
itk_module(${ModuleName}
DEPENDS
ITKCommon
ITKIOImageBase
ITKImageFilterBase
ITKSmoothing
${${ModuleName}_GPU_DEPENDANCIES}
${${ModuleName}_GPU_COMMON}
TEST_DEPENDS
ITKTestKernel #to handle IO in src
${${ModuleName}_GPU_COMMON}
ITKSmoothing
DESCRIPTION
"${DOCUMENTATION}"
EXCLUDE_FROM_DEFAULT
# Header only library does not use ENABLE_SHARED
)