Skip to content

Commit 60e43e9

Browse files
authored
Merge pull request #130 from finetjul/do-not-link-with-all-ITK-modules
COMP: Do not link ModuleDescriptionParser with entire ITK
2 parents 0040dc7 + a7dc451 commit 60e43e9

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

ModuleDescriptionParser/CMakeLists.txt

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
1212
"MinSizeRel" "RelWithDebInfo")
1313
endif()
1414

15-
# --------------------------------------------------------------------------
16-
# Prerequisites
17-
# --------------------------------------------------------------------------
18-
19-
#
20-
# ITK
21-
#
22-
set(${PROJECT_NAME}_ITK_COMPONENTS
23-
ITKCommon# For itksys
24-
ITKIOXML # For ITKEXPAT
25-
ITKExpat # For Expat library
26-
)
27-
find_package(ITK 4.3 COMPONENTS ${${PROJECT_NAME}_ITK_COMPONENTS} REQUIRED)
28-
include(${ITK_USE_FILE})
29-
3015
# --------------------------------------------------------------------------
3116
# Option(s)
3217
# --------------------------------------------------------------------------
@@ -43,6 +28,22 @@ if(ModuleDescriptionParser_USE_SERIALIZER)
4328
include_directories(${ParameterSerializer_INCLUDE_DIRS})
4429
endif()
4530

31+
# --------------------------------------------------------------------------
32+
# Prerequisites
33+
# --------------------------------------------------------------------------
34+
35+
#
36+
# ITK
37+
#
38+
set(${PROJECT_NAME}_ITK_COMPONENTS
39+
ITKCommon# For itksys
40+
ITKIOXML # For ITKEXPAT
41+
ITKExpat # For Expat library
42+
)
43+
44+
find_package(ITK 4.3 COMPONENTS ${${PROJECT_NAME}_ITK_COMPONENTS} REQUIRED)
45+
include(${ITK_USE_FILE})
46+
4647
#-----------------------------------------------------------------------------
4748
# Testing
4849
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)