-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitk-module.cmake
More file actions
63 lines (58 loc) · 2.04 KB
/
Copy pathitk-module.cmake
File metadata and controls
63 lines (58 loc) · 2.04 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#==========================================================================
#
# Copyright NumFOCUS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#==========================================================================
# 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.md" DOCUMENTATION)
# The README goes through itk_module(DESCRIPTION ...) as a single argument, but CMake reads
# an unescaped ';' as a list separator: every statement in the C++ snippets would otherwise
# be split off and reported as "Unknown argument" by itk_module()'s parser.
string(REPLACE ";" "\\;" DOCUMENTATION "${DOCUMENTATION}")
# itk_module() defines the module dependencies in Impact
# Impact depends on ITKCommon
# The testing module in Impact depends on ITKTestKernel
# and ITKMetaIO(besides Impact and ITKCore)
# By convention those modules outside of ITK are not prefixed with
# ITK.
# define the dependencies of the include module and the tests
itk_module(Impact
DEPENDS
ITKCommon
ITKImageFunction
ITKImageIntensity
ITKDistanceMap
ITKMetricsv4
ITKOptimizersv4
ITKRegistrationCommon
ITKTransform
ITKDisplacementField
ITKImageGrid
ITKImageFilterBase
ITKIOImageBase
COMPILE_DEPENDS
ITKImageSources
TEST_DEPENDS
ITKTestKernel
ITKMetaIO
ITKIOMeta
ITKGoogleTest
DESCRIPTION
"${DOCUMENTATION}"
EXCLUDE_FROM_DEFAULT
ENABLE_SHARED
)