forked from NIRALUser/niral_utilities
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
97 lines (73 loc) · 2.82 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
PROJECT(NIRAL_UTILITIES)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
CMAKE_POLICY(VERSION 2.8)
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/CMake
${CMAKE_CURRENT_BINARY_DIR}/CMake
${CMAKE_MODULE_PATH}
)
INCLUDE(CTest)
IF(CMAKE_COMPILER_2005)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
ENDIF(CMAKE_COMPILER_2005)
IF (${CMAKE_SOURCE_DIR} STREQUAL ${NIRAL_UTILITIES_SOURCE_DIR})
SET (LIBRARY_OUTPUT_PATH ${NIRAL_UTILITIES_BINARY_DIR}/lib CACHE PATH "Single output directory for building all libraries.")
SET (EXECUTABLE_OUTPUT_PATH ${NIRAL_UTILITIES_BINARY_DIR}/bin CACHE PATH "Single output directory for building all executables.")
ENDIF (${CMAKE_SOURCE_DIR} STREQUAL ${NIRAL_UTILITIES_SOURCE_DIR})
include_directories( Common )
OPTION(COMPILE_CORREVAL "Compile CorrespondenceEvaluator." OFF)
IF(COMPILE_CORREVAL)
SUBDIRS(CorrespondenceEvaluator)
ENDIF(COMPILE_CORREVAL)
OPTION(COMPILE_IMAGEMATH "Compile ImageMath." ON)
IF(COMPILE_IMAGEMATH)
SUBDIRS(ImageMath)
ENDIF(COMPILE_IMAGEMATH)
OPTION(COMPILE_IMAGESTAT "Compile ImageStat." OFF)
IF(COMPILE_IMAGESTAT)
SUBDIRS(ImageStat)
ENDIF(COMPILE_IMAGESTAT)
OPTION(COMPILE_CROPTOOLS "Compile CropTools." ON)
IF(COMPILE_CROPTOOLS)
SUBDIRS(CropTools)
ENDIF(COMPILE_CROPTOOLS)
OPTION(COMPILE_CONVERTITKFORMATS "Compile convertITKformats." OFF)
IF(COMPILE_CONVERTITKFORMATS)
SUBDIRS(convertITKformats)
ENDIF(COMPILE_CONVERTITKFORMATS)
OPTION(COMPILE_DWI_NIFTINRRDCONVERSION "Compile DWI_NiftiNrrdConversion." ON)
IF(COMPILE_DWI_NIFTINRRDCONVERSION)
SUBDIRS(DWI_NiftiNrrdConversion)
ENDIF(COMPILE_DWI_NIFTINRRDCONVERSION)
OPTION(COMPILE_POLYDATATRANSFORM "Compile PolydataTransform." ON)
IF(COMPILE_POLYDATATRANSFORM)
SUBDIRS(PolydataTransform)
ENDIF(COMPILE_POLYDATATRANSFORM)
OPTION(COMPILE_TRANSFORMDEFORMATIONFIELD "Compile TransformDeformationField." OFF)
IF(COMPILE_TRANSFORMDEFORMATIONFIELD)
SUBDIRS(TransformDeformationField)
ENDIF(COMPILE_TRANSFORMDEFORMATIONFIELD)
OPTION(COMPILE_POLYDATAMERGE "Compile PolydataMerge." ON)
IF(COMPILE_POLYDATAMERGE)
SUBDIRS(PolydataMerge)
ENDIF(COMPILE_POLYDATAMERGE)
OPTION(COMPILE_CURVECOMPARE "Compile CurveCompare." OFF)
IF(COMPILE_CURVECOMPARE)
SUBDIRS(CurveCompare)
ENDIF(COMPILE_CURVECOMPARE)
OPTION(COMPILE_DTIAtlasBuilder "Compile DTIAtlasBuilder." OFF)
IF(COMPILE_DTIAtlasBuilder)
SUBDIRS(DTIAtlasBuilder)
ENDIF(COMPILE_DTIAtlasBuilder)
OPTION(COMPILE_MULTIATLASSEG "Compile MultiAtlasSeg." OFF)
IF(COMPILE_MULTIATLASSEG)
SUBDIRS(MultiAtlasSeg)
ENDIF(COMPILE_MULTIATLASSEG)
OPTION(COMPILE_TEXTUREBIOMARKERTOOL "Compile TextureBiomarkerTool." OFF)
IF(COMPILE_TEXTUREBIOMARKERTOOL)
SUBDIRS(TextureBiomarkerTool)
ENDIF(COMPILE_TEXTUREBIOMARKERTOOL)
OPTION(COMPILE_DMDBIOMARKERTOOL "Compile DMDBiomarkerTool." OFF)
IF(COMPILE_DMDBIOMARKERTOOL)
SUBDIRS(DMDBiomarkerTool)
ENDIF(COMPILE_DMDBIOMARKERTOOL)