-
Notifications
You must be signed in to change notification settings - Fork 97
/
CMakePresets.json
161 lines (161 loc) · 7.83 KB
/
CMakePresets.json
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 16,
"patch": 3
},
"configurePresets": [
{
"name": "brainstools_base",
"displayName": "Release Common Settings",
"description": "Support Release build using Ninja generator",
"hidden" : true,
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": { "type" : "PATH", "value" : "${sourceDir}/cmake-install-dir" },
"CMAKE_EXPORT_COMPILE_COMMANDS": { "type": "BOOL", "value": "ON" },
"CMAKE_OSX_DEPLOYMENT_TARGET" :{ "type" : "STRING", "value" : "12.3" },
"CMAKE_INSTALL_LIBDIR" : { "type" : "STRING", "value" : "lib" },
"CMAKE_INSTALL_PREFIX_SET": { "type" : "BOOL", "value": "ON" },
"CMAKE_CXX_FLAGS": {"type": "STRING", "value": "-march=native -mtune=native" },
"CMAKE_C_FLAGS": {"type": "STRING", "value": "-march=native -mtune=native" },
"BRAINSTools_REQUIRES_FFTW": { "type": "BOOL", "value" : "ON" },
"BRAINSTools_REQUIRES_TBB": { "type": "BOOL", "value" : "OFF" },
"BRAINSTools_REQUIRES_VTK": { "type": "BOOL", "value" : "OFF" },
"USE_ANTS": { "type": "BOOL", "value" : "ON" },
"USE_AutoWorkup": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSABC": { "type": "BOOL", "value" : "OFF" },
"USE_BRAINSConstellationDetector": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSCreateLabelMapFromProbabilityMaps": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSCreateLabelMapFromPr": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSDeface": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSDWICleanup": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSFit": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSInitializedControlPo": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSIntensityNormalize": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSLabelStats": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSLandmarkInitializer": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSMultiModeSegment": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSMultiSTAPLE": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSMush": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSPosteriorToContinuousClass": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSResample": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSROIAuto": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSSnapShotWriter": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSStripRotation": { "type": "BOOL", "value" : "ON" },
"USE_BRAINSTransformConvert": { "type": "BOOL", "value" : "ON" },
"USE_ConvertBetweenFileFormats": { "type": "BOOL", "value" : "ON" },
"USE_ReferenceAtlas": { "type": "BOOL", "value" : "ON" },
"USE_ImageCalculator": { "type": "BOOL", "value" : "ON" },
"BRAINSTools_BUILD_DICOM_SUPPORT": { "type" : "BOOL", "value": "OFF" },
"USE_DWIConvert": { "type": "BOOL", "value" : "OFF" },
"USE_GTRACT": {"type": "BOOL", "value": "OFF" }
},
"environment": {
"NSLOTS": "4",
"PATH": "$penv{PATH}"
}
},
{
"name": "brainstools_support",
"displayName": "Release support config",
"description": "Release support superbuild using Ninja generator",
"inherits" : "brainstools_base",
"generator": "Ninja",
"binaryDir": "${sourceDir}/cmake-release-support",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Release" },
"USE_SYSTEM_ITK": { "type": "BOOL", "value" : "OFF" },
"USE_SYSTEM_SlicerExecutionModel": { "type": "BOOL", "value" : "OFF" },
"USE_SYSTEM_VTK": { "type": "BOOL", "value" : "OFF" },
"USE_SYSTEM_zlib": { "type": "BOOL", "value" : "OFF" },
"BRAINSTools_SUPERBUILD": { "type" : "BOOL", "value": "ON" },
"BRAINSTools_PKGBUILD": { "type" : "BOOL", "value": "OFF" }
},
"environment": {
"NSLOTS": "4",
"PATH": "$penv{PATH}"
}
},
{
"name": "brainstools_release",
"displayName": "Default Config",
"description": "Default build using Ninja generator",
"inherits" : "brainstools_base",
"generator": "Ninja",
"binaryDir": "${sourceDir}/cmake-release-build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Release" },
"BRAINSTools_SUPERBUILD": { "type" : "BOOL", "value": "OFF" },
"BRAINSTools_PKGBUILD": { "type" : "BOOL", "value": "ON" },
"USE_SYSTEM_ITK": { "type": "BOOL", "value" : "ON" },
"USE_SYSTEM_SlicerExecutionModel": { "type": "BOOL", "value" : "ON" },
"USE_SYSTEM_VTK": { "type": "BOOL", "value" : "ON" },
"USE_SYSTEM_zlib": { "type": "BOOL", "value" : "ON" },
"ANTs_SOURCE_DIR": {"type":"PATH", "value" : "${sourceDir}/cmake-release-support/ANTs" },
"ANTs_LIBRARY_DIR": { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/ANTs-Release-build/Examples" },
"ANTs_DIR": { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/ANTs-Release-build" },
"ITK_DIR": {"type": "PATH", "value" : "${sourceDir}/cmake-release-support/ITKv5-Release-build"},
"SlicerExecutionModel_DIR": { "type": "PATH", "value": "${sourceDir}/cmake-release-support/SlicerExecutionModel-Release-build"},
"VTK_DIR": { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/VTK-Release-build" },
"ZLIB_DIR" : { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/zlib-build" }
},
"environment": {
"NSLOTS": "4",
"PATH": "$penv{PATH}"
}
},
{
"name": "brainstools_debug",
"displayName": "Default Config",
"description": "Default build using Ninja generator",
"inherits" : "brainstools_base",
"generator": "Ninja",
"binaryDir": "${sourceDir}/cmake-debug-build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Debug" },
"BRAINSTools_SUPERBUILD": { "type" : "BOOL", "value": "OFF" },
"BRAINSTools_PKGBUILD": { "type" : "BOOL", "value": "ON" },
"USE_SYSTEM_ITK": { "type": "BOOL", "value" : "ON" },
"USE_SYSTEM_SlicerExecutionModel": { "type": "BOOL", "value" : "ON" },
"USE_SYSTEM_VTK": { "type": "BOOL", "value" : "ON" },
"USE_SYSTEM_zlib": { "type": "BOOL", "value" : "ON" },
"ANTs_SOURCE_DIR": {"type":"PATH", "value" : "${sourceDir}/cmake-release-support/ANTs" },
"ANTs_LIBRARY_DIR": { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/ANTs-Release-build/Examples" },
"ANTs_DIR": { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/ANTs-Release-build" },
"ITK_DIR": {"type": "PATH", "value" : "${sourceDir}/cmake-release-support/ITKv5-Release-build"},
"SlicerExecutionModel_DIR": { "type": "PATH", "value": "${sourceDir}/cmake-release-support/SlicerExecutionModel-Release-build"},
"VTK_DIR": { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/VTK-Release-build" },
"ZLIB_DIR" : { "type": "PATH", "value" : "${sourceDir}/cmake-release-support/zlib-build" }
},
"environment": {
"NSLOTS": "4",
"PATH": "$penv{PATH}"
}
}
],
"buildPresets": [
{
"name": "brainstools_support",
"configurePreset": "brainstools_support"
},
{
"name": "brainstools_release",
"configurePreset": "brainstools_release"
}
],
"testPresets": [
{
"name": "brainstools_support",
"configurePreset": "brainstools_support",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "brainstools_release",
"configurePreset": "brainstools_release",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
}
]
}