-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
59 lines (52 loc) · 1.18 KB
/
CMakeLists.txt
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
# This is the root ITK CMakeList file:
cmake_minimum_required(VERSION 2.8)
# This project is designed to be built outside the Insight source tree.
project(PolyDataCompression)
# Find SlicerExecutionModel
find_package(SlicerExecutionModel REQUIRED)
include(${SlicerExecutionModel_USE_FILE})
# Find ITK
set(ITK_IO_MODULES_USED
ITKIOImageBase
ITKIONRRD
ITKIOCSV
ITKIOGIPL
ITKIOHDF5
ITKIOIPL
ITKIOImageBase
ITKIOLSM
ITKIOMRC
ITKIOMesh
ITKIOMeta
ITKIONIFTI
ITKIONRRD
ITKIORAW
ITKIOVTK
)
#Find ITK
find_package(ITK 4.7 REQUIRED COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageFunction
ITKVTK
${ITK_IO_MODULES_USED}
)
include(${ITK_USE_FILE})
# Find VTK
find_package(VTK REQUIRED NO MODULE)
set( VTK_VERSION_REQUIRED 6 )
if( VTK_VERSION_MAJOR LESS ${VTK_VERSION_REQUIRED} )
message( FATAL_ERROR "${PROJECT_NAME} requires VTK ${VTK_VERSION_REQUIRED}. Version Found: ${VTK_VERSION_MAJOR}" )
endif()
include(${VTK_USE_FILE})
SEMMacroBuildCLI(
NAME PolyDataCompression
EXECUTABLE_ONLY
TARGET_LIBRARIES ${ITK_LIBRARIES} ${VTK_LIBRARIES}
)
include(ExternalData)
option(BUILD_TESTING "Build the testing tree" ON)
IF(BUILD_TESTING)
include(CTest)
ADD_SUBDIRECTORY(Testing)
ENDIF(BUILD_TESTING)