Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

STYLE: Move CMake commands to match new conventions

The next step in removing end-of-lines is to run through all the
CMakeLists.txt files and clean them up.

This also changes all the key words to lower
case. The primary reason for changing key words is that all documentation for
CMakeLists.txt now shows the key words as lower case. Even the printed
“Mastering CMake v5” uses lower case. I’ve come across this several
times in my class where students stumble over the fact that the
documentation about Cmake does not match the implementation in ITK.

I have a script (a wrapper around a vim macro) written that can make
these substituions reliably (Tested on the BRAINS tree, the Slicer3
tree, and the ITK tree without causing any errors).  More complete
documentation can be found in
ITK/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt

git-svn-id: http://svn.slicer.org/Slicer4/trunk@17191 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
commit 73d5d9ef4e3bb3624c15ecf404d112cdc1848d59 1 parent c0c6926
@jcfr jcfr authored
Showing with 5,695 additions and 5,695 deletions.
  1. +2 −2 Applications/CLI/BRAINSTools/BRAINSCommonLib/BRAINSCommonLibInstallConfig.cmake.in
  2. +13 −13 Applications/CLI/BRAINSTools/BRAINSCommonLib/CMakeLists.txt
  3. +2 −2 Applications/CLI/BRAINSTools/BRAINSCommonLib/CTestConfig.cmake
  4. +1 −1  Applications/CLI/BRAINSTools/BRAINSCommonLib/GenerateBRAINSCommonLibConfig.cmake
  5. +13 −13 Applications/CLI/BRAINSTools/BRAINSCommonLib/Test_FindCenterOfBrainFilter/CMakeLists.txt
  6. +4 −4 Applications/CLI/BRAINSTools/BRAINSDemonWarp/CMakeLists.txt
  7. +2 −2 Applications/CLI/BRAINSTools/BRAINSDemonWarp/CTestConfig.cmake
  8. +1 −1  Applications/CLI/BRAINSTools/BRAINSDemonWarp/Example/CMakeLists.txt
  9. +15 −15 Applications/CLI/BRAINSTools/BRAINSFit/CMakeCPackOptions.cmake.in
  10. +5 −5 Applications/CLI/BRAINSTools/BRAINSFit/CMakeLists.txt
  11. +2 −2 Applications/CLI/BRAINSTools/BRAINSFit/CTestConfig.cmake
  12. +15 −15 Applications/CLI/BRAINSTools/BRAINSFitIGT/CMakeCPackOptions.cmake.in
  13. +3 −3 Applications/CLI/BRAINSTools/BRAINSFitIGT/CMakeLists.txt
  14. +2 −2 Applications/CLI/BRAINSTools/BRAINSFitIGT/CTestConfig.cmake
  15. +4 −4 Applications/CLI/BRAINSTools/BRAINSROIAuto/CMakeLists.txt
  16. +2 −2 Applications/CLI/BRAINSTools/BRAINSROIAuto/CTestConfig.cmake
  17. +3 −3 Applications/CLI/BRAINSTools/BRAINSROIAuto/TestSuite/CMakeLists.txt
  18. +4 −4 Applications/CLI/BRAINSTools/BRAINSResample/CMakeLists.txt
  19. +2 −2 Applications/CLI/BRAINSTools/BRAINSResample/CTestConfig.cmake
  20. +14 −14 Applications/CLI/BRAINSTools/BuildScripts/CMakeBRAINS3BuildMacros.cmake
  21. +24 −24 Applications/CLI/BRAINSTools/BuildScripts/CMakeCommonExternalDefinitions.cmake
  22. +4 −4 Applications/CLI/BRAINSTools/BuildScripts/ExternalProject.cmake
  23. +9 −9 Applications/CLI/BatchMakeApplications/CMakeLists.txt
  24. +10 −10 Applications/CLI/BatchMakeApplications/DiffusionTensorEstimationBatchMakeModule/CMakeLists.txt
  25. +15 −15 Applications/CLI/BatchMakeApplications/EMSegmentBatchMakeModule/CMakeLists.txt
  26. +12 −12 Applications/CLI/BatchMakeApplications/GaussianBlurBatchMakeModule/CMakeLists.txt
  27. +14 −14 Applications/CLI/BatchMakeApplications/RegisterImagesBatchMakeModule/CMakeLists.txt
  28. +10 −10 Applications/CLI/BatchMakeApplications/ResampleVolumeBatchMakeModule/CMakeLists.txt
  29. +38 −38 Applications/CLI/CMakeLists.txt
  30. +12 −12 Applications/CLI/DicomToNrrdConverter/CMakeLists.txt
  31. +1 −1  Applications/CLI/DicomToNrrdConverter/ExtendedTesting/CMakeLists.txt
  32. +1 −1  Applications/CLI/DicomToNrrdConverter/ExtendedTesting/DicomToNrrdDWICompareTest.cmake
  33. +3 −3 Applications/CLI/DicomToNrrdConverter/Testing/CMakeLists.txt
  34. +6 −6 Applications/CLI/DiffusionApplications/CMakeLists.txt
  35. +3 −3 Applications/CLI/DiffusionApplications/ResampleDTI/CMakeLists.txt
  36. +8 −8 Applications/CLI/DiffusionApplications/ResampleDTI/Testing/CMakeLists.txt
  37. +29 −29 Applications/CLI/Java/CMakeLists.txt
  38. +1 −1  Applications/CLI/MIDASApplications/CMakeLists.txt
  39. +22 −22 Applications/CLI/MRIBiasFieldCorrection/CMakeLists.txt
  40. +4 −4 Applications/CLI/N4ITKBiasFieldCorrection/CMakeLists.txt
  41. +5 −5 Applications/CLI/N4ITKBiasFieldCorrection/Testing/CMakeLists.txt
  42. +3 −3 Applications/CLI/Realign/CMakeLists.txt
  43. +299 −299 Applications/CLI/RegisterImagesModule/Applications/CMakeLists.txt
  44. +7 −7 Applications/CLI/RegisterImagesModule/Applications/CTestConfig.cmake
  45. +4 −4 Applications/CLI/RegisterImagesModule/CMakeLists.txt
  46. +34 −34 Applications/CLI/RegisterImagesModule/MultiResApplications/CMakeLists.txt
  47. +9 −9 Applications/CLI/RegisterImagesModule/MultiResApplications/Testing/CMakeLists.txt
  48. +12 −12 Applications/CLI/RobustStatisticsSegmenter/CMakeLists.txt
  49. +17 −17 Applications/CLI/SparseFieldLevelSetContour/CMakeLists.txt
  50. +231 −231 Applications/CLI/Testing/CMakeLists.txt
  51. +1 −1  Applications/CLI/Testing/run_MergeModelsTest.cmake
  52. +7 −7 Applications/CMakeLists.txt
  53. +18 −18 Applications/GUI/CMakeLists.txt
  54. +1 −1  Applications/GUI/Testing/CMakeLists.txt
  55. +81 −81 Applications/SlicerQT/CMakeLists.txt
  56. +4 −4 Applications/SlicerQT/Testing/CMakeLists.txt
  57. +11 −11 Applications/SlicerQT/Testing/Cpp/CMakeLists.txt
  58. +8 −8 Applications/SlicerQT/Testing/Python/CMakeLists.txt
  59. +23 −23 Base/CLI/CMakeLists.txt
  60. +14 −14 Base/CMakeLists.txt
  61. +3 −3 Base/GUI/CMakeLists.txt
  62. +12 −12 Base/GUI/Python/CMakeLists.txt
  63. +1 −1  Base/GUI/Python/Testing/CMakeLists.txt
  64. +23 −23 Base/GUI/Testing/CMakeLists.txt
  65. +42 −42 Base/Logic/CMakeLists.txt
  66. +13 −13 Base/Logic/Testing/CMakeLists.txt
  67. +11 −11 Base/Python/CMakeLists.txt
  68. +15 −15 Base/QTCLI/CMakeLists.txt
  69. +13 −13 Base/QTCLI/Testing/CMakeLists.txt
  70. +19 −19 Base/QTCore/CMakeLists.txt
  71. +2 −2 Base/QTCore/Testing/CMakeLists.txt
  72. +19 −19 Base/QTCore/Testing/Cxx/CMakeLists.txt
  73. +4 −4 Base/QTCore/Testing/Python/CMakeLists.txt
  74. +12 −12 Base/QTCoreModules/CMakeLists.txt
  75. +21 −21 Base/QTCoreModules/Testing/CMakeLists.txt
  76. +48 −48 Base/QTGUI/CMakeLists.txt
  77. +4 −4 Base/QTGUI/Plugins/CMakeLists.txt
  78. +13 −13 Base/QTGUI/Testing/CMakeLists.txt
  79. +37 −37 CMake/CTestCustom.cmake.in
  80. +14 −14 CMake/FindCTK.cmake
  81. +35 −35 CMake/FindGit.cmake
  82. +38 −38 CMake/FindSubversion.cmake
  83. +1 −1  CMake/Slicer3Macros.cmake
  84. +3 −3 CMake/Slicer3PluginsMacros.cmake
  85. +106 −106 CMake/SlicerBlockCTKAppLauncherSettings.cmake
  86. +7 −7 CMake/SlicerBlockCXXCoverageFlags.cmake
  87. +33 −33 CMake/SlicerBlockCXXRequiredFlags.cmake
  88. +46 −46 CMake/SlicerBlockFindQtAndCheckVersion.cmake
  89. +4 −4 CMake/SlicerBlockInstallLibArchive.cmake
  90. +11 −11 CMake/SlicerBlockInstallPythonQt.cmake
  91. +19 −19 CMake/SlicerBlockInstallQt.cmake
  92. +4 −4 CMake/SlicerBlockInstallTcl.cmake
  93. +4 −4 CMake/SlicerBlockPlatformCheck.cmake
  94. +20 −20 CMake/SlicerDashboardDriverScript.cmake
  95. +19 −19 CMake/SlicerDashboardScript.TEMPLATE.cmake
  96. +25 −25 CMake/SlicerFunctionCTestPackage.cmake
  97. +19 −19 CMake/SlicerFunctionCheckCompilerFlags.cmake
  98. +9 −9 CMake/SlicerFunctionGetGccVersion.cmake
  99. +17 −17 CMake/SlicerFunctionInstallLibrary.cmake
  100. +15 −15 CMake/SlicerFunctionToday.cmake
  101. +51 −51 CMake/SlicerMacroBuildBaseQtLibrary.cmake
  102. +54 −54 CMake/SlicerMacroBuildCLI.cmake
  103. +19 −19 CMake/SlicerMacroBuildModuleLogic.cmake
  104. +15 −15 CMake/SlicerMacroBuildModuleMRML.cmake
  105. +59 −59 CMake/SlicerMacroBuildModuleQtLibrary.cmake
  106. +52 −52 CMake/SlicerMacroBuildModuleVTKLibrary.cmake
  107. +15 −15 CMake/SlicerMacroBuildModuleWidgets.cmake
  108. +60 −60 CMake/SlicerMacroBuildQtModule.cmake
  109. +40 −40 CMake/SlicerMacroCheckExternalProjectDependency.cmake
  110. +10 −10 CMake/SlicerMacroConfigureGenericCxxModuleTests.cmake
  111. +9 −9 CMake/SlicerMacroConfigureGenericPythonModuleTests.cmake
  112. +4 −4 CMake/SlicerMacroEmptyExternalProject.cmake
  113. +63 −63 CMake/SlicerMacroExtractRepositoryInfo.cmake
  114. +24 −24 CMake/SlicerMacroGetPlatformArchitectureBitness.cmake
  115. +29 −29 CMake/SlicerMacroParseArguments.cmake
  116. +6 −6 CMake/SlicerMacroPythonTesting.cmake
  117. +30 −30 CMake/SlicerMacroPythonWrapModuleVTKLibrary.cmake
  118. +27 −27 CMake/cuda/CudaDependency.cmake
  119. +196 −196 CMake/cuda/FindCuda.cmake
  120. +22 −22 CMake/cuda/make2cmake.cmake
  121. +47 −47 CMake/cuda/parse_cubin.cmake
  122. +48 −48 CMake/vtkMacroKitPythonWrap.cmake
  123. +333 −333 CMakeLists.txt
  124. +1 −1  CTestConfig.cmake
  125. +5 −5 Extensions/CMake/SlicerBlockBuildPackageAndUploadExtension.cmake
  126. +55 −55 Extensions/CMake/SlicerBlockBuildPackageAndUploadExtensions.cmake
  127. +27 −27 Extensions/CMake/SlicerBlockUploadExtension.cmake
  128. +5 −5 Extensions/CMake/SlicerBlockUploadExtensionPrerequisites.cmake
  129. +15 −15 Extensions/CMake/SlicerEnableExtensionTesting.cmake
  130. +31 −31 Extensions/CMake/SlicerFunctionExtractExtensionDescription.cmake
  131. +39 −39 Extensions/CMake/SlicerFunctionGenerateExtensionDescription.cmake
  132. +42 −42 Extensions/CMake/SlicerMacroGetCompilerName.cmake
  133. +33 −33 Extensions/Testing/LoadableExtensionTemplate/CMakeLists.txt
  134. +6 −6 Extensions/Testing/LoadableExtensionTemplate/Logic/CMakeLists.txt
  135. +1 −1  Extensions/Testing/LoadableExtensionTemplate/Testing/CMakeLists.txt
  136. +17 −17 Extensions/Testing/LoadableExtensionTemplate/Testing/Cxx/CMakeLists.txt
  137. +29 −29 Extensions/Testing/ScriptedLoadableExtensionTemplate/CMakeLists.txt
  138. +1 −1  Extensions/Testing/ScriptedLoadableExtensionTemplate/Testing/CMakeLists.txt
  139. +3 −3 Extensions/Testing/ScriptedLoadableExtensionTemplate/Testing/Python/CMakeLists.txt
  140. +38 −38 Libs/CMakeLists.txt
  141. +37 −37 Libs/CudaSupport/CMakeLists.txt
  142. +15 −15 Libs/FileWatcher/CMakeLists.txt
  143. +44 −44 Libs/FreeSurfer/CMakeLists.txt
  144. +40 −40 Libs/IGT/CMakeLists.txt
  145. +27 −27 Libs/MGHImageIO/CMakeLists.txt
  146. +48 −48 Libs/MRML/CMakeLists.txt
  147. +22 −22 Libs/MRML/Testing/CMakeLists.txt
  148. +34 −34 Libs/MRMLCLI/CMakeLists.txt
  149. +54 −54 Libs/MRMLDisplayableManager/CMakeLists.txt
  150. +1 −1  Libs/MRMLDisplayableManager/Python/CMakeLists.txt
  151. +1 −1  Libs/MRMLDisplayableManager/Testing/CMakeLists.txt
  152. +19 −19 Libs/MRMLDisplayableManager/Testing/Cxx/CMakeLists.txt
  153. +27 −27 Libs/MRMLIDImageIO/CMakeLists.txt
  154. +41 −41 Libs/MRMLLogic/CMakeLists.txt
  155. +1 −1  Libs/MRMLLogic/Testing/CMakeLists.txt
  156. +15 −15 Libs/MRMLLogic/Testing/Cxx/CMakeLists.txt
  157. +34 −34 Libs/RemoteIO/CMakeLists.txt
  158. +26 −26 Libs/SlicerExecutionModel/CMakeLists.txt
  159. +25 −25 Libs/SlicerExecutionModel/GenerateCLP/CMakeLists.txt
  160. +3 −3 Libs/SlicerExecutionModel/GenerateCLP/GenerateCLPInstallConfig.cmake.in
  161. +1 −1  Libs/SlicerExecutionModel/GenerateCLP/GenerateGenerateCLPConfig.cmake
  162. +21 −21 Libs/SlicerExecutionModel/GenerateCLP/Testing/CMakeLists.txt
  163. +12 −12 Libs/SlicerExecutionModel/GenerateCLP/UseGenerateCLP.cmake.in
  164. +7 −7 Libs/SlicerExecutionModel/ModuleDescriptionParser/CMake/CMakeLists.txt
  165. +29 −29 Libs/SlicerExecutionModel/ModuleDescriptionParser/CMakeLists.txt
  166. +9 −9 Libs/SlicerExecutionModel/ModuleDescriptionParser/GenerateModuleDescriptionParserConfig.cmake
  167. +4 −4 Libs/SlicerExecutionModel/ModuleDescriptionParser/ModuleDescriptionParserConfig.cmake.in
  168. +6 −6 Libs/SlicerExecutionModel/ModuleDescriptionParser/ModuleDescriptionParserInstallConfig.cmake.in
  169. +6 −6 Libs/SlicerExecutionModel/ModuleDescriptionParser/Testing/CMakeLists.txt
  170. +13 −13 Libs/SlicerExecutionModel/tclap/CMakeLists.txt
  171. +4 −4 Libs/SlicerExecutionModel/tclap/GenerateTCLAPConfig.cmake
  172. +2 −2 Libs/SlicerExecutionModel/tclap/TCLAPConfig.cmake.in
  173. +5 −5 Libs/SlicerExecutionModel/tclap/TCLAPInstallConfig.cmake.in
  174. +33 −33 Libs/qMRMLWidgets/CMake/qCTKDesignerPluginMacros.cmake
  175. +29 −29 Libs/qMRMLWidgets/CMake/qCTKParseArgumentsMacro.cmake
  176. +54 −54 Libs/qMRMLWidgets/CMakeLists.txt
  177. +4 −4 Libs/qMRMLWidgets/Plugins/CMakeLists.txt
  178. +17 −17 Libs/qMRMLWidgets/Testing/CMakeLists.txt
  179. +35 −35 Libs/vtkITK/CMakeLists.txt
  180. +22 −22 Libs/vtkITK/Testing/CMakeLists.txt
  181. +4 −4 Libs/vtkITK/vtkITKConfig.cmake.in
  182. +31 −31 Libs/vtkTeem/CMakeLists.txt
  183. +14 −14 Libs/vtkTeem/Testing/CMakeLists.txt
  184. +3 −3 Libs/vtkTeem/vtkTeemConfig.cmake.in
  185. +17 −17 Modules/AtlasCreator/CMakeLists.txt
  186. +5 −5 Modules/AtlasCreator/Logic/CMakeLists.txt
  187. +19 −19 Modules/BrainlabModule/CMakeLists.txt
  188. +10 −10 Modules/CMakeLists.txt
  189. +43 −43 Modules/ChangeTracker/CMakeLists.txt
  190. +3 −3 Modules/ChangeTracker/CommandLineApplication/CMakeLists.txt
  191. +6 −6 Modules/ChangeTracker/DeformableMetric/CMakeLists.txt
  192. +13 −13 Modules/ChangeTracker/DiffeomorphicDemonsRegistration/CMakeLists.txt
  193. +16 −16 Modules/ChangeTracker/Testing/CMakeLists.txt
  194. +2 −2 Modules/ClipModel/CMakeLists.txt
  195. +8 −8 Modules/CollectFiducials/CMakeLists.txt
  196. +16 −16 Modules/CommandLineModule/CMakeLists.txt
  197. +2 −2 Modules/CommandLineModule/Testing/HelloSlicer/CMakeLists.txt
  198. +3 −3 Modules/CropVolume/CMakeLists.txt
  199. +2 −2 Modules/DiffusionWelcome/CMakeLists.txt
  200. +2 −2 Modules/DistanceMapFiducials/CMakeLists.txt
  201. +2 −2 Modules/DistanceTransformModel/CMakeLists.txt
  202. +5 −5 Modules/Editor/CMakeLists.txt
  203. +3 −3 Modules/Editor/Testing/CMakeLists.txt
  204. +2 −2 Modules/Endoscopy/CMakeLists.txt
  205. +6 −6 Modules/FastMarchingSegmentation/CMakeLists.txt
  206. +19 −19 Modules/FastMarchingSegmentation/Testing/CMakeLists.txt
  207. +10 −10 Modules/FetchMI/CMakeLists.txt
  208. +5 −5 Modules/FetchMI/Logic/CMakeLists.txt
  209. +12 −12 Modules/FourDImage/CMakeLists.txt
  210. +8 −8 Modules/IGTToolSelector/CMakeLists.txt
  211. +13 −13 Modules/IntensityNormalization/CMakeLists.txt
  212. +19 −19 Modules/Meshing/Adapter/CMakeLists.txt
  213. +45 −45 Modules/Meshing/BuildingBlock/CMakeLists.txt
  214. +9 −9 Modules/Meshing/CMakeLists.txt
  215. +32 −32 Modules/Meshing/Common/CMakeLists.txt
  216. +21 −21 Modules/Meshing/Filter/CMakeLists.txt
  217. +37 −37 Modules/Meshing/IA_FEMesh/CMakeLists.txt
  218. +18 −18 Modules/Meshing/IO/CMakeLists.txt
  219. +4 −4 Modules/Meshing/Mesh/CMakeLists.txt
  220. +9 −9 Modules/Meshing/Testing/CMakeLists.txt
  221. +29 −29 Modules/Meshing/Widgets/CMakeLists.txt
  222. +5 −5 Modules/ModelIntoLabelVolume/CMakeLists.txt
  223. +10 −10 Modules/ModelMirror/CMakeLists.txt
  224. +5 −5 Modules/ModelMirror/Logic/CMakeLists.txt
  225. +10 −10 Modules/ModelTransform/CMakeLists.txt
  226. +5 −5 Modules/ModelTransform/Logic/CMakeLists.txt
  227. +15 −15 Modules/ModelTransform/Testing/CMakeLists.txt
  228. +12 −12 Modules/NeuroNav/CMakeLists.txt
  229. +1 −1  Modules/NeuroNav/Testing/CMakeLists.txt
  230. +26 −26 Modules/OpenCV/CMakeLists.txt
  231. +49 −49 Modules/OpenCV/FindOpenCV.cmake
  232. +35 −35 Modules/OpenCV/FindOpenIGTLink.cmake
  233. +12 −12 Modules/OpenIGTLinkIF/CMakeLists.txt
  234. +1 −1  Modules/OpenIGTLinkIF/Testing/CMakeLists.txt
  235. +9 −9 Modules/PETCTFusion/CMakeLists.txt
  236. +18 −18 Modules/ProstateNav/CMakeLists.txt
  237. +2 −2 Modules/Python/CMakeLists.txt
  238. +2 −2 Modules/RegistrationWelcome/CMakeLists.txt
  239. +2 −2 Modules/SegmentationWelcome/CMakeLists.txt
  240. +19 −19 Modules/SlicerDaemon/CMakeLists.txt
  241. +5 −5 Modules/SlicerDaemon/Testing/CMakeLists.txt
  242. +4 −4 Modules/Statistics/CMakeLists.txt
  243. +8 −8 Modules/Statistics/LabelStatistics/CMakeLists.txt
  244. +16 −16 Modules/VolumeRendering/CMakeLists.txt
  245. +10 −10 Modules/VolumeRendering/VolumeRenderingReplacements/CMakeLists.txt
  246. +18 −18 Modules/Volumes/CMakeLists.txt
  247. +6 −6 Modules/Volumes/Logic/CMakeLists.txt
  248. +9 −9 Modules/Volumes/Testing/CMakeLists.txt
  249. +24 −24 QTModules/Annotation/CMakeLists.txt
  250. +6 −6 QTModules/Annotation/MRML/CMakeLists.txt
  251. +32 −32 QTModules/Annotation/Testing/Cxx/CMakeLists.txt
  252. +11 −11 QTModules/Annotation/Widgets/CMakeLists.txt
  253. +5 −5 QTModules/Annotation/Widgets/Plugins/CMakeLists.txt
  254. +12 −12 QTModules/CMakeLists.txt
  255. +13 −13 QTModules/CropVolume/CMakeLists.txt
  256. +6 −6 QTModules/CropVolume/Logic/CMakeLists.txt
  257. +6 −6 QTModules/CropVolume/MRML/CMakeLists.txt
  258. +18 −18 QTModules/CropVolume/Testing/CMakeLists.txt
  259. +10 −10 QTModules/Measurements/CMakeLists.txt
  260. +1 −1  QTModules/Measurements/Testing/CMakeLists.txt
  261. +18 −18 QTModules/Measurements/Testing/Cxx/CMakeLists.txt
  262. +13 −13 QTModules/Models/CMakeLists.txt
  263. +1 −1  QTModules/Models/Testing/CMakeLists.txt
  264. +18 −18 QTModules/Models/Testing/Cxx/CMakeLists.txt
  265. +4 −4 QTModules/Models/Widgets/Plugins/CMakeLists.txt
  266. +1 −1  QTModules/Models/Widgets/Testing/CMakeLists.txt
  267. +18 −18 QTModules/Models/Widgets/Testing/Cxx/CMakeLists.txt
  268. +12 −12 QTModules/ModuleTemplate/CMakeLists.txt
  269. +6 −6 QTModules/ModuleTemplate/Logic/CMakeLists.txt
  270. +1 −1  QTModules/ModuleTemplate/Testing/CMakeLists.txt
  271. +18 −18 QTModules/ModuleTemplate/Testing/Cxx/CMakeLists.txt
  272. +16 −16 QTModules/SceneViews/CMakeLists.txt
  273. +18 −18 QTModules/SceneViews/Testing/Cxx/CMakeLists.txt
  274. +11 −11 QTModules/SlicerWelcome/CMakeLists.txt
  275. +1 −1  QTModules/SlicerWelcome/Testing/CMakeLists.txt
  276. +18 −18 QTModules/SlicerWelcome/Testing/Cxx/CMakeLists.txt
  277. +16 −16 QTModules/TractographyDisplay/CMakeLists.txt
  278. +5 −5 QTModules/TractographyDisplay/Logic/CMakeLists.txt
  279. +1 −1  QTModules/TractographyDisplay/Testing/CMakeLists.txt
  280. +18 −18 QTModules/TractographyDisplay/Testing/Cxx/CMakeLists.txt
  281. +11 −11 QTModules/TractographyDisplay/Widgets/CMakeLists.txt
  282. +11 −11 QTModules/TractographyFiducialSeeding/CMakeLists.txt
  283. +5 −5 QTModules/TractographyFiducialSeeding/Logic/CMakeLists.txt
  284. +18 −18 QTModules/TractographyFiducialSeeding/Testing/CMakeLists.txt
  285. +16 −16 QTModules/VolumeRendering/CMakeLists.txt
  286. +8 −8 QTModules/VolumeRendering/Logic/CMakeLists.txt
  287. +6 −6 QTModules/VolumeRendering/MRML/CMakeLists.txt
  288. +1 −1  QTModules/VolumeRendering/Testing/CMakeLists.txt
  289. +33 −33 QTModules/VolumeRendering/Testing/Cxx/CMakeLists.txt
  290. +6 −6 QTModules/VolumeRendering/VolumeRenderingReplacements/CMakeLists.txt
  291. +11 −11 QTModules/Volumes/CMakeLists.txt
  292. +1 −1  QTModules/Volumes/Testing/CMakeLists.txt
  293. +33 −33 QTModules/Volumes/Testing/Cxx/CMakeLists.txt
  294. +2 −2 QTScriptedModules/CMakeLists.txt
  295. +4 −4 QTScriptedModules/EditorLib/CMakeLists.txt
  296. +7 −7 QTScriptedModules/Scripts/CMakeLists.txt
  297. +2 −2 Resources/CMakeLists.txt
  298. +23 −23 Scripts/VTKVersionMacros.cmake
  299. +8 −8 SlicerCPack.cmake
  300. +17 −17 SlicerConfig.cmake.in
Sorry, we could not display the entire diff because too many files (339) changed.
View
4 Applications/CLI/BRAINSTools/BRAINSCommonLib/BRAINSCommonLibInstallConfig.cmake.in
@@ -1,5 +1,5 @@
-# BRAINSCommonLib could be installed anywhere, so set all paths based on where
-# this file was found (which should be the lib/BRAINSCommonLib directory of the
+# BRAINSCommonLib could be installed anywhere, so set all paths based on where
+# this file was found (which should be the lib/BRAINSCommonLib directory of the
# installation)
get_filename_component(BRAINSCommonLib_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
View
26 Applications/CLI/BRAINSTools/BRAINSCommonLib/CMakeLists.txt
@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.8)
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
- CMAKE_POLICY(SET CMP0016 NEW)
+ cmake_policy(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
- CMAKE_POLICY(SET CMP0017 OLD)
+ cmake_policy(SET CMP0017 OLD)
endif()
enable_testing()
@@ -82,25 +82,25 @@ if (Slicer_SOURCE_DIR)
else (Slicer_SOURCE_DIR)
- INSTALL(TARGETS BRAINSCommonLib
+ install(TARGETS BRAINSCommonLib
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/BRAINSCommonLib
ARCHIVE DESTINATION lib/BRAINSCommonLib
)
- IF(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
- FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
- FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
- INSTALL(FILES ${__files1} ${__files2} ${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLib.h
+ if(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
+ file(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+ file(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
+ install(FILES ${__files1} ${__files2} ${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLib.h
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/BRAINSCommonLib
COMPONENT Development)
- ENDIF(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
+ endif(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/BRAINSCommonLibInstallConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLibInstallConfig.cmake
@ONLY)
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLibInstallConfig.cmake
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLibInstallConfig.cmake
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/BRAINSCommonLib
COMPONENT Development
RENAME BRAINSCommonLibConfig.cmake)
@@ -108,11 +108,11 @@ else (Slicer_SOURCE_DIR)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/UseBRAINSCommonLib.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/UseBRAINSCommonLib.cmake @ONLY)
- # INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/UseBRAINSCommonLib.cmake.in
+ # install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/UseBRAINSCommonLib.cmake.in
# DESTINATION lib/BRAINSCommonLib
# COMPONENT Development
# RENAME UseBRAINSCommonLib.cmake)
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/UseBRAINSCommonLib.cmake
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/UseBRAINSCommonLib.cmake
DESTINATION lib/BRAINSCommonLib
COMPONENT Development)
@@ -120,7 +120,7 @@ endif (Slicer_SOURCE_DIR)
##HACK NEED BETTER TESTS add_directory( TestLargestForegroundFilledMaskImageFilter )
##HACK NEED BETTER TESTS add_directory( Test_FindCenterOfBrainFilter )
-IF(BUILD_TESTING)
+if(BUILD_TESTING)
add_subdirectory(TestSuite)
-ENDIF()
+endif()
View
4 Applications/CLI/BRAINSTools/BRAINSCommonLib/CTestConfig.cmake
@@ -2,8 +2,8 @@
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
-## ENABLE_TESTING()
-## INCLUDE(CTest)
+## enable_testing()
+## include(CTest)
set(CTEST_PROJECT_NAME "BRAINSCommonLib")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
View
2  Applications/CLI/BRAINSTools/BRAINSCommonLib/GenerateBRAINSCommonLibConfig.cmake
@@ -1,4 +1,4 @@
-# Generate the BRAINSCommonLibConfig.cmake file in the build tree and configure
+# Generate the BRAINSCommonLibConfig.cmake file in the build tree and configure
# one the installation tree.
# Settings specific to build trees
View
26 Applications/CLI/BRAINSTools/BRAINSCommonLib/Test_FindCenterOfBrainFilter/CMakeLists.txt
@@ -6,37 +6,37 @@
# In practice, this is only a problem if programs other than BRAINSFit actually
# add FindCenterOfBrainFilter as a subdirectory, rather than just using it for the
# include files.
-#
+#
# But if a build fails because someone added it to a non-brainsfit application, I
# hope they look at this file and read this comment, and CUT THAT BUSINESS RIGHT OUT.
# Unless this is a subdirectory of BRAINSFit, there's NO USE adding it as a subdirectory
# in the CMakeLists.txt. It will just end in tears.
#
-INCLUDE_DIRECTORIES(${BRAINSFit_SOURCE_DIR}/BRAINSFit_Common)
-INCLUDE_DIRECTORIES(${BRAINSFit_SOURCE_DIR}/LargestForegroundFilledMaskImageFilter)
-INCLUDE_DIRECTORIES(${BRAINSFit_SOURCE_DIR}/FindCenterOfBrainFilter)
+include_directories(${BRAINSFit_SOURCE_DIR}/BRAINSFit_Common)
+include_directories(${BRAINSFit_SOURCE_DIR}/LargestForegroundFilledMaskImageFilter)
+include_directories(${BRAINSFit_SOURCE_DIR}/FindCenterOfBrainFilter)
-ENABLE_TESTING()
+enable_testing()
include(Dart)
-SET(FindCenterOfBrain_SRC
+set(FindCenterOfBrain_SRC
FindCenterOfBrainCLP.cxx)
generateclp(FindCenterOfBrain_SRC FindCenterOfBrain.xml)
-ADD_EXECUTABLE(FindCenterOfBrain ${FindCenterOfBrain_SRC})
-TARGET_LINK_LIBRARIES(FindCenterOfBrain
+add_executable(FindCenterOfBrain ${FindCenterOfBrain_SRC})
+target_link_libraries(FindCenterOfBrain
${ITK_LIBRARIES}
)
-IF(NOT BRAINS_BUILD)
- ADD_EXECUTABLE(ImageCompare ImageCompare.cxx)
- TARGET_LINK_LIBRARIES(ImageCompare ${ITK_LIBRARIES} )
-ENDIF(NOT BRAINS_BUILD)
+if(NOT BRAINS_BUILD)
+ add_executable(ImageCompare ImageCompare.cxx)
+ target_link_libraries(ImageCompare ${ITK_LIBRARIES} )
+endif(NOT BRAINS_BUILD)
set(FINDCENTER_PROG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FindCenterOfBrain)
-ADD_TEST(RudimentaryFindCenterOfBrainTest tclsh ${CMAKE_CURRENT_SOURCE_DIR}}/TestData/FindCenterOfBrainFilter/Test/TestFCOB.tcl
+add_test(RudimentaryFindCenterOfBrainTest tclsh ${CMAKE_CURRENT_SOURCE_DIR}}/TestData/FindCenterOfBrainFilter/Test/TestFCOB.tcl
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
${BRAINSFit_SOURCE_DIR}/TestData
${BRAINSFit_BINARY_DIR}/Testing
View
8 Applications/CLI/BRAINSTools/BRAINSDemonWarp/CMakeLists.txt
@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.8)
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
- CMAKE_POLICY(SET CMP0016 NEW)
+ cmake_policy(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
- CMAKE_POLICY(SET CMP0017 OLD)
+ cmake_policy(SET CMP0017 OLD)
endif()
enable_testing()
@@ -104,9 +104,9 @@ set(${CLP}_PRIMARY_SOURCE VBRAINSDemonWarpPrimary.cxx)
CONFIGUREBRAINSORSLICERPROPERTIES(${CLP} VBRAINSDemonWarpPrimary.xml "${${CLP}_SOURCE}" "${${CLP}_PRIMARY_SOURCE}" "VBRAINSDemonWarpPrimary" "BRAINSDemonWarpCommonLib")
### Add the Testing Subdirectory.
-IF(BUILD_TESTING)
+if(BUILD_TESTING)
add_subdirectory(TestSuite)
-ENDIF()
+endif()
if(NOT Slicer3_SOURCE_DIR)
add_subdirectory(Example)
endif(NOT Slicer3_SOURCE_DIR)
View
4 Applications/CLI/BRAINSTools/BRAINSDemonWarp/CTestConfig.cmake
@@ -2,8 +2,8 @@
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
-## ENABLE_TESTING()
-## INCLUDE(Dart)
+## enable_testing()
+## include(Dart)
set(CTEST_PROJECT_NAME "BRAINSDemonWarp")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
View
2  Applications/CLI/BRAINSTools/BRAINSDemonWarp/Example/CMakeLists.txt
@@ -33,7 +33,7 @@ add_executable( SimpleDiffeomorphicRegistrationCLP ${SimpleDiffeomorphicRegistra
target_link_libraries(SimpleDiffeomorphicRegistrationCLP BRAINSDemonWarpLIB)
add_test(
- NAME ValidateLIB
+ NAME ValidateLIB
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:SimpleDiffeomorphicRegistrationCLP>
${BRAINSDemonWarp_SOURCE_DIR}/TestingBRAINSDemonWarp/ANON0006_20_T1_dbg_splayed.nii.gz
${BRAINSDemonWarp_SOURCE_DIR}/TestingBRAINSDemonWarp/ANON0006_20_T1_sag_twisted.nii.gz
View
30 Applications/CLI/BRAINSTools/BRAINSFit/CMakeCPackOptions.cmake.in
@@ -1,37 +1,37 @@
# This file is configured at cmake time, and loaded at cpack time.
# To pass variables to cpack from cmake, they must be configured
-# in this file.
+# in this file.
if(CPACK_GENERATOR MATCHES "NSIS")
# set the install/unistall icon used for the installer itself
- # There is a bug in NSI that does not handle full unix paths properly.
- SET(CPACK_NSIS_MUI_ICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
- SET(CPACK_NSIS_MUI_UNIICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
+ # There is a bug in NSI that does not handle full unix paths properly.
+ set(CPACK_NSIS_MUI_ICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
+ set(CPACK_NSIS_MUI_UNIICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
# set the package header icon for MUI
- SET(CPACK_PACKAGE_ICON "@BRAINSFit_SOURCE_DIR@/BRAINSLogo.bmp")
+ set(CPACK_PACKAGE_ICON "@BRAINSFit_SOURCE_DIR@/BRAINSLogo.bmp")
# tell cpack to create links to the doc files
- SET(CPACK_NSIS_MENU_LINKS
+ set(CPACK_NSIS_MENU_LINKS
"http://www.nitrc.org" "Neuroinformatics Tools and Resources Clearinghouse"
)
# Use the icond from cmake-gui for add-remove programs
-# SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\cmake-gui.exe")
+# set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\cmake-gui.exe")
set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\MyExecutable.exe")
- SET(CPACK_NSIS_DISPLAY_NAME "CMake @BRAINSFit_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@ a cross-platform, open-source build system")
- SET(CPACK_NSIS_PACKAGE_NAME "CMake @BRAINSFit_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@")
- SET(CPACK_NSIS_HELP_LINK "http://www.nitrc.org")
- SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.nitrc.com")
- SET(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
- SET(CPACK_NSIS_MODIFY_PATH ON)
+ set(CPACK_NSIS_DISPLAY_NAME "CMake @BRAINSFit_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@ a cross-platform, open-source build system")
+ set(CPACK_NSIS_PACKAGE_NAME "CMake @BRAINSFit_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@")
+ set(CPACK_NSIS_HELP_LINK "http://www.nitrc.org")
+ set(CPACK_NSIS_URL_INFO_ABOUT "http://www.nitrc.com")
+ set(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
+ set(CPACK_NSIS_MODIFY_PATH ON)
endif(CPACK_GENERATOR MATCHES "NSIS")
# include the cpack options for qt dialog if they exisit
# they might not if qt was not enabled for the build
-INCLUDE("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
+include("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
if(CPACK_GENERATOR MATCHES "CygwinSource")
# when packaging source make sure the .build directory is not included
- SET(CPACK_SOURCE_IGNORE_FILES
+ set(CPACK_SOURCE_IGNORE_FILES
"/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$")
endif(CPACK_GENERATOR MATCHES "CygwinSource")
View
10 Applications/CLI/BRAINSTools/BRAINSFit/CMakeLists.txt
@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.8)
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
- CMAKE_POLICY(SET CMP0016 NEW)
+ cmake_policy(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
- CMAKE_POLICY(SET CMP0017 OLD)
+ cmake_policy(SET CMP0017 OLD)
endif()
enable_testing()
@@ -63,11 +63,11 @@ set(${CLP}_PRIMARY_SOURCE ${BRAINSFit_SOURCE_DIR}/BRAINSFitPrimary.cxx)
CONFIGUREBRAINSORSLICERPROPERTIES(${CLP} BRAINSFitPrimary.xml "${${CLP}_SOURCE}" "${${CLP}_PRIMARY_SOURCE}" "BRAINSFitPrimary" "")
target_link_libraries( ${CLP} BRAINSCommonLib ${ITK_LIBRARIES} ${OPTIONAL_DEBUG_LINK_LIBRARIES})
-INSTALL(TARGETS BRAINSFit DESTINATION ${Slicer_INSTALL_BIN_DIR})
+install(TARGETS BRAINSFit DESTINATION ${Slicer_INSTALL_BIN_DIR})
-IF(BUILD_TESTING)
+if(BUILD_TESTING)
add_subdirectory(TestSuite)
-ENDIF()
+endif()
include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "BRAINSFit Image Registration")
View
4 Applications/CLI/BRAINSTools/BRAINSFit/CTestConfig.cmake
@@ -2,8 +2,8 @@
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
-## ENABLE_TESTING()
-## INCLUDE(Dart)
+## enable_testing()
+## include(Dart)
site_name(SITE)
set(CTEST_PROJECT_NAME "BRAINSFit")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
View
30 Applications/CLI/BRAINSTools/BRAINSFitIGT/CMakeCPackOptions.cmake.in
@@ -1,37 +1,37 @@
# This file is configured at cmake time, and loaded at cpack time.
# To pass variables to cpack from cmake, they must be configured
-# in this file.
+# in this file.
if(CPACK_GENERATOR MATCHES "NSIS")
# set the install/unistall icon used for the installer itself
- # There is a bug in NSI that does not handle full unix paths properly.
- SET(CPACK_NSIS_MUI_ICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
- SET(CPACK_NSIS_MUI_UNIICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
+ # There is a bug in NSI that does not handle full unix paths properly.
+ set(CPACK_NSIS_MUI_ICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
+ set(CPACK_NSIS_MUI_UNIICON "@BRAINS_CMAKE_HELPER_DIR@/BRAINSLogo.ico")
# set the package header icon for MUI
- SET(CPACK_PACKAGE_ICON "@BRAINSFitIGT_SOURCE_DIR@/BRAINSLogo.bmp")
+ set(CPACK_PACKAGE_ICON "@BRAINSFitIGT_SOURCE_DIR@/BRAINSLogo.bmp")
# tell cpack to create links to the doc files
- SET(CPACK_NSIS_MENU_LINKS
+ set(CPACK_NSIS_MENU_LINKS
"http://www.nitrc.org" "Neuroinformatics Tools and Resources Clearinghouse"
)
# Use the icond from cmake-gui for add-remove programs
-# SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\cmake-gui.exe")
+# set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\cmake-gui.exe")
set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\MyExecutable.exe")
- SET(CPACK_NSIS_DISPLAY_NAME "CMake @BRAINSFitIGT_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@ a cross-platform, open-source build system")
- SET(CPACK_NSIS_PACKAGE_NAME "CMake @BRAINSFitIGT_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@")
- SET(CPACK_NSIS_HELP_LINK "http://www.nitrc.org")
- SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.nitrc.com")
- SET(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
- SET(CPACK_NSIS_MODIFY_PATH ON)
+ set(CPACK_NSIS_DISPLAY_NAME "CMake @BRAINSFitIGT_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@ a cross-platform, open-source build system")
+ set(CPACK_NSIS_PACKAGE_NAME "CMake @BRAINSFitIGT_VERSION_MAJOR@.@BRAINSFit_VERSION_MINOR@")
+ set(CPACK_NSIS_HELP_LINK "http://www.nitrc.org")
+ set(CPACK_NSIS_URL_INFO_ABOUT "http://www.nitrc.com")
+ set(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
+ set(CPACK_NSIS_MODIFY_PATH ON)
endif(CPACK_GENERATOR MATCHES "NSIS")
# include the cpack options for qt dialog if they exisit
# they might not if qt was not enabled for the build
-INCLUDE("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
+include("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
if(CPACK_GENERATOR MATCHES "CygwinSource")
# when packaging source make sure the .build directory is not included
- SET(CPACK_SOURCE_IGNORE_FILES
+ set(CPACK_SOURCE_IGNORE_FILES
"/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$")
endif(CPACK_GENERATOR MATCHES "CygwinSource")
View
6 Applications/CLI/BRAINSTools/BRAINSFitIGT/CMakeLists.txt
@@ -46,12 +46,12 @@ set(${CLP}_SOURCE BRAINSFitIGT.cxx ${BRAINSFitIGT_SOURCE_DIR}/BRAINSFitIGTPrima
CONFIGUREBRAINSORSLICERPROPERTIES(${CLP} BRAINSFitIGTPrimary.xml "${${CLP}_SOURCE}" "")
target_link_libraries( ${CLP} BRAINSCommonLib ITKIO ITKAlgorithms ${OPTIONAL_DEBUG_LINK_LIBRARIES})
-INSTALL(TARGETS BRAINSFitIGT DESTINATION bin)
+install(TARGETS BRAINSFitIGT DESTINATION bin)
# not yet
-#IF(BUILD_TESTING)
+#if(BUILD_TESTING)
# add_subdirectory(TestSuite)
-#ENDIF()
+#endif()
include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "BRAINSFitIGT Image Registration")
View
4 Applications/CLI/BRAINSTools/BRAINSFitIGT/CTestConfig.cmake
@@ -2,8 +2,8 @@
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
-## ENABLE_TESTING()
-## INCLUDE(Dart)
+## enable_testing()
+## include(Dart)
site_name(SITE)
set(CTEST_PROJECT_NAME "BRAINSFitIGT")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
View
8 Applications/CLI/BRAINSTools/BRAINSROIAuto/CMakeLists.txt
@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.8)
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
- CMAKE_POLICY(SET CMP0016 NEW)
+ cmake_policy(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
- CMAKE_POLICY(SET CMP0017 OLD)
+ cmake_policy(SET CMP0017 OLD)
endif()
enable_testing()
@@ -60,6 +60,6 @@ set(${CLP}_PRIMARY_SOURCE BRAINSROIAuto.cxx)
CONFIGUREBRAINSORSLICERPROPERTIES(${CLP} BRAINSROIAuto.xml "${${CLP}_SOURCE}" "${${CLP}_PRIMARY_SOURCE}" "main" "")
target_link_libraries( ${CLP} BRAINSCommonLib ${ITK_LIBRARIES} ${OPTIONAL_DEBUG_LINK_LIBRARIES})
-IF(BUILD_TESTING)
+if(BUILD_TESTING)
add_subdirectory(TestSuite)
-ENDIF()
+endif()
View
4 Applications/CLI/BRAINSTools/BRAINSROIAuto/CTestConfig.cmake
@@ -2,8 +2,8 @@
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
-## ENABLE_TESTING()
-## INCLUDE(CTest)
+## enable_testing()
+## include(CTest)
set(CTEST_PROJECT_NAME "BRAINSROIAuto")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
View
6 Applications/CLI/BRAINSTools/BRAINSROIAuto/TestSuite/CMakeLists.txt
@@ -16,9 +16,9 @@ include(${BRAINS_CMAKE_HELPER_DIR}/MIDAS.cmake)
set(MIDAS_KEY_DIR "${PROJECT_SOURCE_DIR}/../BRAINSCommonLib/TestData")
#add_test(
-# NAME BRATestImage
+# NAME BRATestImage
# COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRATestImage>
-# ${BRAINSROIAuto_BINARY_DIR}/sphere.nii.gz
+# ${BRAINSROIAuto_BINARY_DIR}/sphere.nii.gz
# ${BRAINSROIAuto_BINARY_DIR}/GeneratedMaskSphere.nii.gz
# )
@@ -27,7 +27,7 @@ midas_add_test(
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSROIAuto>
--inputVolume MIDAS{test.nii.gz.md5}
--outputROIMaskVolume ${TESTING_BINARY_DIR}/BRAINSROIAutoTest_GenerateBrainMask.nii.gz
- --ROIAutoDilateSize 10
+ --ROIAutoDilateSize 10
--outputVolumePixelType uchar
)
set_tests_properties ( BRAINSROIAutoTest_GenerateBrainMask PROPERTIES DEPENDS BRATestImage)
View
8 Applications/CLI/BRAINSTools/BRAINSResample/CMakeLists.txt
@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.8)
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
- CMAKE_POLICY(SET CMP0016 NEW)
+ cmake_policy(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
- CMAKE_POLICY(SET CMP0017 OLD)
+ cmake_policy(SET CMP0017 OLD)
endif()
enable_testing()
@@ -74,6 +74,6 @@ if(BRAINS_BUILD) ## ONLY BUILD FOR BACKWARDS COMPATIBILITY IN BRAINS ENVIRONMENT
endif(BRAINS_BUILD) ## ONLY BUILD FOR BACKWARDS COMPATIBILITY IN BRAINS ENVIRONMENT
### Add the Testing Subdirectory.
-IF(BUILD_TESTING)
+if(BUILD_TESTING)
add_subdirectory(TestSuite)
-ENDIF()
+endif()
View
4 Applications/CLI/BRAINSTools/BRAINSResample/CTestConfig.cmake
@@ -2,8 +2,8 @@
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
-## ENABLE_TESTING()
-## INCLUDE(CTest)
+## enable_testing()
+## include(CTest)
site_name(SITE)
set(CTEST_PROJECT_NAME "BRAINSResample")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
View
28 Applications/CLI/BRAINSTools/BuildScripts/CMakeBRAINS3BuildMacros.cmake
@@ -18,15 +18,15 @@ macro(BRAINSGENERATEMODULESCRIPT progname)
get_target_property(BGCbin_dir ${progname} RUNTIME_OUTPUT_DIRECTORY)
set(BGCbin_name ${progname})
- IF(APPLE)
- SET(OS_VARNAME_FOR_LIBRARY_PATH "DYLD_LIBRARY_PATH")
- ELSE(APPLE)
- SET(OS_VARNAME_FOR_LIBRARY_PATH "LD_LIBRARY_PATH")
- ENDIF(APPLE)
+ if(APPLE)
+ set(OS_VARNAME_FOR_LIBRARY_PATH "DYLD_LIBRARY_PATH")
+ else(APPLE)
+ set(OS_VARNAME_FOR_LIBRARY_PATH "LD_LIBRARY_PATH")
+ endif(APPLE)
- CONFIGURE_FILE(${BRAINS_CMAKE_HELPER_DIR}/Module_Dummy.in ${BGCbin_dir}/Modules/${progname} )
+ configure_file(${BRAINS_CMAKE_HELPER_DIR}/Module_Dummy.in ${BGCbin_dir}/Modules/${progname} )
-# FILE(WRITE ${BGCbin_dir}/Modules/${progname}
+# file(WRITE ${BGCbin_dir}/Modules/${progname}
# "#!/usr/bin/tclsh
# catch {set script [info script]}
# catch {set script [file normalize \$script]}
@@ -101,7 +101,7 @@ if(NOT CONFIGUREBRAINSORSLICERPROPERTIES)
else()
GENERATECLP(CLP_SOURCES ${PROGCLI} )
endif()
-
+
add_executable( ${PROGNAME} ${CLP_SOURCES} ${PROGCLI_HEADER})
if(WIN32)
@@ -127,10 +127,10 @@ if(NOT CONFIGUREBRAINSORSLICERPROPERTIES)
slicer3_install_plugins(${TARGETS})
else (Slicer_SOURCE_DIR)
### If building outside of Slicer3, then only build the command line executable.
- IF(BRAINS_BUILD)
+ if(BRAINS_BUILD)
BRAINSGENERATEMODULESCRIPT(${PROGNAME})
- ENDIF(BRAINS_BUILD)
- INSTALL(TARGETS ${PROGNAME}
+ endif(BRAINS_BUILD)
+ install(TARGETS ${PROGNAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
@@ -174,10 +174,10 @@ macro(CONFIGUREBRAINSORSLICERLIBRARY LIBNAME LIBCLI LIBSOURCES EXTRA_LIBS)
slicer3_install_plugins(${TARGETS})
else (Slicer_SOURCE_DIR)
### If building outside of Slicer3, then only build the command line executable.
- IF(BRAINS_BUILD)
+ if(BRAINS_BUILD)
BRAINSGENERATEMODULESCRIPT(${LIBNAME})
- ENDIF(BRAINS_BUILD)
- INSTALL(TARGETS ${LIBNAME}
+ endif(BRAINS_BUILD)
+ install(TARGETS ${LIBNAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
View
48 Applications/CLI/BRAINSTools/BuildScripts/CMakeCommonExternalDefinitions.cmake
@@ -17,8 +17,8 @@ endmacro()
## empty until ITK is brought into here as an ExternalProject
macro(PACKAGE_NEEDS_ITK LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck ITK)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_ITK)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
@@ -61,8 +61,8 @@ endmacro()
#
macro(PACKAGE_NEEDS_VTKWITHQT LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck VTK)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_VTK)
find_package(VTK 5.6 REQUIRED)
include(${VTK_USE_FILE})
@@ -126,7 +126,7 @@ macro(PACKAGE_NEEDS_VTKWITHQT LOCAL_CMAKE_BUILD_OPTIONS gen)
set(VTK_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-build)
set(VTK_DEPEND ${proj})
- MESSAGE(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
+ message(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
set(VTK_CMAKE
-DVTK_DIR:PATH=${VTK_DIR}
${QT_ARGS}
@@ -136,8 +136,8 @@ endmacro()
macro(PACKAGE_NEEDS_VTK_NOGUI LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck VTK)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_VTK)
find_package(VTK 5.6 REQUIRED)
include(${VTK_USE_FILE})
@@ -190,7 +190,7 @@ macro(PACKAGE_NEEDS_VTK_NOGUI LOCAL_CMAKE_BUILD_OPTIONS gen)
set(VTK_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-build)
set(VTK_DEPEND ${proj})
- MESSAGE(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
+ message(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
set(VTK_CMAKE
-DVTK_DIR:PATH=${VTK_DIR}
)
@@ -199,8 +199,8 @@ endmacro()
macro(PACKAGE_NEEDS_VTK_NOGUI LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck VTK)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_VTK)
find_package(VTK 5.6 REQUIRED)
include(${VTK_USE_FILE})
@@ -253,7 +253,7 @@ macro(PACKAGE_NEEDS_VTK_NOGUI LOCAL_CMAKE_BUILD_OPTIONS gen)
set(VTK_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-build)
set(VTK_DEPEND ${proj})
- MESSAGE(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
+ message(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
set(VTK_CMAKE
-DVTK_DIR:PATH=${VTK_DIR}
)
@@ -262,8 +262,8 @@ endmacro()
macro(PACKAGE_NEEDS_VTK_WITHR LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck VTK)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_VTK)
find_package(VTK 5.7 REQUIRED)
include(${VTK_USE_FILE})
@@ -306,10 +306,10 @@ macro(PACKAGE_NEEDS_VTK_WITHR LOCAL_CMAKE_BUILD_OPTIONS gen)
-DVTK_WRAP_PYTHON:BOOL=${vtk_WRAP_PYTHON}
-DVTK_USE_GNU_R:BOOL=ON
-DR_COMMAND:FILEPATH=${R_DIR}/bin/R
- -DR_INCLUDE_DIR:PATH=${R_DIR}/include
- -DR_LIBRARY_BASE=${R_DIR}/lib
- -DR_LIBRARY_BLAS:FILEPATH=${R_DIR}/lib/libRblas${CMAKE_SHARED_LIBRARY_SUFFIX}
- -DR_LIBRARY_LAPACK:FILEPATH=${R_DIR}/lib/libRlapack${CMAKE_SHARED_LIBRARY_SUFFIX}
+ -DR_INCLUDE_DIR:PATH=${R_DIR}/include
+ -DR_LIBRARY_BASE=${R_DIR}/lib
+ -DR_LIBRARY_BLAS:FILEPATH=${R_DIR}/lib/libRblas${CMAKE_SHARED_LIBRARY_SUFFIX}
+ -DR_LIBRARY_LAPACK:FILEPATH=${R_DIR}/lib/libRlapack${CMAKE_SHARED_LIBRARY_SUFFIX}
#-DVTK_R_HOME:PATH=${CMAKE_CURRENT_BINARY_DIR}/R-build
${vtk_GUI_ARGS}
INSTALL_COMMAND ""
@@ -319,7 +319,7 @@ macro(PACKAGE_NEEDS_VTK_WITHR LOCAL_CMAKE_BUILD_OPTIONS gen)
set(VTK_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-build)
set(VTK_DEPEND ${proj})
- MESSAGE(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
+ message(STATUS "Setting VTK_DIR to -DVTK_DIR:PATH=${VTK_DIR}")
set(VTK_CMAKE
-DVTK_DIR:PATH=${VTK_DIR}
)
@@ -330,8 +330,8 @@ endmacro()
## Build the SlicerExecutionModel Once, and let all derived project use the same version
macro(PACKAGE_NEEDS_SlicerExecutionModel LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck SlicerExecutionModel)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_SlicerExecutionModel)
find_package(GenerateCLP NO_MODULE REQUIRED)
include(${GenerateCLP_USE_FILE})
@@ -364,8 +364,8 @@ endmacro()
# Get and build BRAINSCommonLib
macro(PACKAGE_NEEDS_BRAINSCommonLib LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck BRAINSCommonLib)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_BRAINSCommonLib)
find_package(BRAINSCommonLib NO_MODULE REQUIRED)
include(${BRAINSCommonLib_USE_FILE})
@@ -397,8 +397,8 @@ endmacro()
# Get and build R statistical library
macro(PACKAGE_NEEDS_RSTATS LOCAL_CMAKE_BUILD_OPTIONS gen)
set(packageToCheck R)
- OPTION(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
- # MARK_AS_ADVANCED(OPT_USE_SYSTEM_${packageToCheck})
+ option(OPT_USE_SYSTEM_${packageToCheck} "Use the system's ${packageToCheck} library." OFF)
+ # mark_as_advanced(OPT_USE_SYSTEM_${packageToCheck})
if(OPT_USE_SYSTEM_R)
find_package(R NO_MODULE REQUIRED)
include(${R_USE_FILE})
View
8 Applications/CLI/BRAINSTools/BuildScripts/ExternalProject.cmake
@@ -619,8 +619,8 @@ function(_ep_add_download_command name)
set(comment)
set(work_dir)
- # MESSAGE(WARNING "${name} source_dir: ${source_dir} download_dir: ${download_dir} tmp_dir: ${tmp_dir} ")
- # MESSAGE(WARNING "${name} CMD_SET: ${cmd_set} CMD: ${cmd} CVS: ${cvs_repository} SVN: ${svn_repository} URL: ${url} ")
+ # message(WARNING "${name} source_dir: ${source_dir} download_dir: ${download_dir} tmp_dir: ${tmp_dir} ")
+ # message(WARNING "${name} CMD_SET: ${cmd_set} CMD: ${cmd} CVS: ${cvs_repository} SVN: ${svn_repository} URL: ${url} ")
if(cmd_set)
set(work_dir ${download_dir})
elseif(cvs_repository)
@@ -688,10 +688,10 @@ function(_ep_add_download_command name)
get_filename_component(abs_source_dir "${source_dir}" ABSOLUTE)
set(comment "Performing download step (DIR copy) for '${name}'")
if ( "${abs_source_dir}" MATCHES "${abs_url_dir}" )
- #MESSAGE(WARNING "${abs_source_dir} MATCHES ${abs_url_dir}" )
+ #message(WARNING "${abs_source_dir} MATCHES ${abs_url_dir}" )
set(cmd ${CMAKE_COMMAND} -E echo "${abs_source_dir} MATCHES ${abs_url_dir}" )
else()
- MESSAGE(FATAL_ERROR "Trying to remove the ${abs_source_dir} ${abs_source_dir} MATCHES ${abs_url_dir}")
+ message(FATAL_ERROR "Trying to remove the ${abs_source_dir} ${abs_source_dir} MATCHES ${abs_url_dir}")
set(cmd ${CMAKE_COMMAND} -E remove_directory ${abs_source_dir}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${abs_url_dir} ${abs_source_dir})
endif()
View
18 Applications/CLI/BatchMakeApplications/CMakeLists.txt
@@ -9,7 +9,7 @@ if(BatchMake_DIR)
# ${BatchMake_DIR}/bin/debug
# ${BatchMake_DIR}/bin/${CMAKE_BUILD_TYPE}
# ${BatchMake_DIR}/bin)
-
+
#find_program(bmGridStore
# NAMES bmGridStore.exe bmGridStore
# PATHS ${BatchMake_DIR}/bin/relwithdebinfo
@@ -17,7 +17,7 @@ if(BatchMake_DIR)
# ${BatchMake_DIR}/bin/debug
# ${BatchMake_DIR}/bin/${CMAKE_BUILD_TYPE}
# ${BatchMake_DIR}/bin)
-
+
#find_program(bmSliceExtractor
# NAMES bmSliceExtractor.exe bmSliceExtractor
# PATHS ${BatchMake_DIR}/bin/relwithdebinfo
@@ -34,7 +34,7 @@ if(BatchMake_DIR)
#
# TODO The following code will have to be updated to copy the file at build time
# using a command like:
- # execute_process(${CMAKE_COMMAND} -E copy ...) and using
+ # execute_process(${CMAKE_COMMAND} -E copy ...) and using
# CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE
#
if(WIN32)
@@ -54,22 +54,22 @@ if(BatchMake_DIR)
endif(Slicer_BINARY_DIR)
if (Slicer_SOURCE_DIR)
- set(RUNTIME_SUPPORT_FILES
+ set(RUNTIME_SUPPORT_FILES
"${BatchMake_WRAPPED_APPLICATION_DIR}/bmSliceExtractor.bmm"
"${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridSend.bmm"
"${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridStore.bmm" )
- install(FILES ${RUNTIME_SUPPORT_FILES}
+ install(FILES ${RUNTIME_SUPPORT_FILES}
DESTINATION ${Slicer_INSTALL_PLUGINS_SHARE_DIR})
endif(Slicer_SOURCE_DIR)
endif( BatchMake_DIR)
-SET(batchmake_modules
+set(batchmake_modules
# EMSegmentBatchMakeModule
GaussianBlurBatchMakeModule
RegisterImagesBatchMakeModule
ResampleVolumeBatchMakeModule
)
-FOREACH(module ${batchmake_modules})
- ADD_SUBDIRECTORY(${module})
-ENDFOREACH(module)
+foreach(module ${batchmake_modules})
+ add_subdirectory(${module})
+endforeach(module)
View
20 Applications/CLI/BatchMakeApplications/DiffusionTensorEstimationBatchMakeModule/CMakeLists.txt
@@ -42,14 +42,14 @@ if(BatchMake_DIR)
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/debug
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/${CMAKE_BUILD_TYPE}
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR})
-
+
#
# TODO The following code will have to be updated to copy the file at build time
# using a command like:
- # execute_process(${CMAKE_COMMAND} -E copy ...) and using
+ # execute_process(${CMAKE_COMMAND} -E copy ...) and using
# CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE
#
-
+
if(WIN32)
set(BatchMake_WRAPPED_APPLICATION_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE})
else(WIN32)
@@ -73,11 +73,11 @@ if(BatchMake_DIR)
endif(GenerateCLP_FOUND)
if(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
- ${Slicer3BatchModule}.xml
+ generateclp(Slicer3BatchModule_SOURCE
+ ${Slicer3BatchModule}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule_LOGO})
else(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
+ generateclp(Slicer3BatchModule_SOURCE
${Slicer3BatchModule}.xml)
endif(${Slicer3BatchModule_LOGO})
@@ -87,16 +87,16 @@ if(BatchMake_DIR)
add_dependencies(${Slicer3BatchModule} ${Slicer3ExeModule})
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
set(TARGETS ${Slicer3BatchModule})
slicer3_install_plugins(${TARGETS})
- set(RUNTIME_SUPPORT_FILES
+ set(RUNTIME_SUPPORT_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule}.xml"
"${BatchMake_WRAPPED_APPLICATION_DIR}/${Slicer3ExeModule}.bmm")
- install(FILES ${RUNTIME_SUPPORT_FILES}
+ install(FILES ${RUNTIME_SUPPORT_FILES}
DESTINATION ${Slicer_INSTALL_PLUGINS_SHARE_DIR}/${PROJECT_NAME})
endif(Slicer_SOURCE_DIR)
View
30 Applications/CLI/BatchMakeApplications/EMSegmentBatchMakeModule/CMakeLists.txt
@@ -28,7 +28,7 @@ if(BatchMake_DIR)
# ${BatchMake_DIR}/bin/debug
# ${BatchMake_DIR}/bin/${CMAKE_BUILD_TYPE}
# ${BatchMake_DIR}/bin)
-
+
# find_program(bmGridStore
# NAMES bmGridStore.exe bmGridStore
# PATHS ${BatchMake_DIR}/bin/relwithdebinfo
@@ -36,7 +36,7 @@ if(BatchMake_DIR)
# ${BatchMake_DIR}/bin/debug
# ${BatchMake_DIR}/bin/${CMAKE_BUILD_TYPE}
# ${BatchMake_DIR}/bin)
-
+
# find_program(bmSliceExtractor
# NAMES bmSliceExtractor.exe bmSliceExtractor
# PATHS ${BatchMake_DIR}/bin/relwithdebinfo
@@ -65,14 +65,14 @@ if(BatchMake_DIR)
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/debug
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/${CMAKE_BUILD_TYPE}
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR})
-
+
#
# TODO The following code will have to be updated to copy the file at build time
# using a command like:
- # execute_process(${CMAKE_COMMAND} -E copy ...) and using
+ # execute_process(${CMAKE_COMMAND} -E copy ...) and using
# CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE
#
-
+
if(WIN32)
set(BatchMake_WRAPPED_APPLICATION_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE})
else(WIN32)
@@ -95,7 +95,7 @@ if(BatchMake_DIR)
"${CMAKE_CURRENT_BINARY_DIR}/SlicerBatchMakeConfig.h")
endif(Slicer_BINARY_DIR)
-
+
# Find GenerateCLP
find_package(GenerateCLP REQUIRED)
if(GenerateCLP_FOUND)
@@ -103,11 +103,11 @@ if(BatchMake_DIR)
endif(GenerateCLP_FOUND)
if(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
- ${Slicer3BatchModule}.xml
+ generateclp(Slicer3BatchModule_SOURCE
+ ${Slicer3BatchModule}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule_LOGO})
else(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
+ generateclp(Slicer3BatchModule_SOURCE
${Slicer3BatchModule}.xml)
endif(${Slicer3BatchModule_LOGO})
@@ -115,23 +115,23 @@ if(BatchMake_DIR)
slicer3_set_plugins_output_path(${Slicer3BatchModule})
target_link_libraries(${Slicer3BatchModule} BatchMakeLib)
add_dependencies(${Slicer3BatchModule} ${Slicer3ExeModule})
- SET_TARGET_PROPERTIES(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
-
+ set_target_properties(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
+
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
set(TARGETS ${Slicer3BatchModule})
slicer3_install_plugins(${TARGETS})
- set(RUNTIME_SUPPORT_FILES
+ set(RUNTIME_SUPPORT_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule}.xml"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmSliceExtractor.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridSend.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridStore.bmm"
"${BatchMake_WRAPPED_APPLICATION_DIR}/${Slicer3ExeModule}.bmm")
- install(FILES ${RUNTIME_SUPPORT_FILES}
+ install(FILES ${RUNTIME_SUPPORT_FILES}
DESTINATION ${Slicer_INSTALL_PLUGINS_SHARE_DIR}/${PROJECT_NAME})
endif(Slicer_SOURCE_DIR)
View
24 Applications/CLI/BatchMakeApplications/GaussianBlurBatchMakeModule/CMakeLists.txt
@@ -42,14 +42,14 @@ if(BatchMake_DIR)
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/debug
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/${CMAKE_BUILD_TYPE}
${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR})
-
+
#
# TODO The following code will have to be updated to copy the file at build time
# using a command like:
- # execute_process(${CMAKE_COMMAND} -E copy ...) and using
+ # execute_process(${CMAKE_COMMAND} -E copy ...) and using
# CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE
#
-
+
if(WIN32)
set(BatchMake_WRAPPED_APPLICATION_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE})
else(WIN32)
@@ -73,11 +73,11 @@ if(BatchMake_DIR)
endif(GenerateCLP_FOUND)
if(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
- ${Slicer3BatchModule}.xml
+ generateclp(Slicer3BatchModule_SOURCE
+ ${Slicer3BatchModule}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule_LOGO})
else(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
+ generateclp(Slicer3BatchModule_SOURCE
${Slicer3BatchModule}.xml)
endif(${Slicer3BatchModule_LOGO})
@@ -85,19 +85,19 @@ if(BatchMake_DIR)
slicer3_set_plugins_output_path(${Slicer3BatchModule})
target_link_libraries(${Slicer3BatchModule} BatchMakeLib)
add_dependencies(${Slicer3BatchModule} ${Slicer3ExeModule})
- SET_TARGET_PROPERTIES(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
-
+ set_target_properties(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
+
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
set(TARGETS ${Slicer3BatchModule})
slicer3_install_plugins(${TARGETS})
- set(RUNTIME_SUPPORT_FILES
+ set(RUNTIME_SUPPORT_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule}.xml"
"${BatchMake_WRAPPED_APPLICATION_DIR}/${Slicer3ExeModule}.bmm")
- install(FILES ${RUNTIME_SUPPORT_FILES}
+ install(FILES ${RUNTIME_SUPPORT_FILES}
DESTINATION ${Slicer_INSTALL_PLUGINS_SHARE_DIR}/${PROJECT_NAME})
endif(Slicer_SOURCE_DIR)
View
28 Applications/CLI/BatchMakeApplications/RegisterImagesBatchMakeModule/CMakeLists.txt
@@ -21,11 +21,11 @@ find_package(BatchMake REQUIRED)
include(${BatchMake_USE_FILE})
if(BatchMake_DIR)
-
+
find_path(Slicer_BINARY_DIR NAMES Base/Logic/SlicerBaseLogicInit.cxx)
if(Slicer_BINARY_DIR)
- find_program( ${Slicer3ExeModule}Path
+ find_program( ${Slicer3ExeModule}Path
NAMES ${Slicer3ExeModule}.exe ${Slicer3ExeModule}
PATHS ${Slicer_BINARY_DIR}/bin/relwithdebinfo
${Slicer_BINARY_DIR}/bin/release
@@ -60,11 +60,11 @@ if(BatchMake_DIR)
endif(GenerateCLP_FOUND)
if(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
- ${Slicer3BatchModule}.xml
+ generateclp(Slicer3BatchModule_SOURCE
+ ${Slicer3BatchModule}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule_LOGO})
else(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
+ generateclp(Slicer3BatchModule_SOURCE
${Slicer3BatchModule}.xml)
endif(${Slicer3BatchModule_LOGO})
@@ -72,35 +72,35 @@ if(BatchMake_DIR)
slicer3_set_plugins_output_path(${Slicer3BatchModule})
target_link_libraries(${Slicer3BatchModule} BatchMakeLib)
add_dependencies(${Slicer3BatchModule} ${Slicer3ExeModule})
- SET_TARGET_PROPERTIES(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
+ set_target_properties(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
set(TARGETS ${Slicer3BatchModule})
slicer3_install_plugins(${TARGETS})
-
+
#
# TODO The following code will have to be updated to copy the file at build time
# using a command like:
- # execute_process(${CMAKE_COMMAND} -E copy ...) and using
+ # execute_process(${CMAKE_COMMAND} -E copy ...) and using
# CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE
#
-
+
if(WIN32)
set(BatchMake_WRAPPED_APPLICATION_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE})
else(WIN32)
set(BatchMake_WRAPPED_APPLICATION_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endif(WIN32)
-
- set(RUNTIME_SUPPORT_FILES
+
+ set(RUNTIME_SUPPORT_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule}.xml" )
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmSliceExtractor.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridSend.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridStore.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/${Slicer3ExeModule}.bmm")
- install(FILES ${RUNTIME_SUPPORT_FILES}
+ install(FILES ${RUNTIME_SUPPORT_FILES}
DESTINATION ${Slicer_INSTALL_PLUGINS_SHARE_DIR}/${PROJECT_NAME})
endif(Slicer_SOURCE_DIR)
View
20 Applications/CLI/BatchMakeApplications/ResampleVolumeBatchMakeModule/CMakeLists.txt
@@ -21,7 +21,7 @@ find_package(BatchMake REQUIRED)
include(${BatchMake_USE_FILE})
if(BatchMake_DIR)
-
+
find_path(Slicer_BINARY_DIR NAMES Base/Logic/SlicerBaseLogicInit.cxx)
if(Slicer_BINARY_DIR)
find_program( ${Slicer3ExeModule}Path
@@ -45,7 +45,7 @@ if(BatchMake_DIR)
#
# TODO The following code will have to be updated to copy the file at build time
# using a command like:
- # execute_process(${CMAKE_COMMAND} -E copy ...) and using
+ # execute_process(${CMAKE_COMMAND} -E copy ...) and using
# CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE
#
set( Slicer3ExeModulePath ${${Slicer3ExeModule}Path} )
@@ -68,11 +68,11 @@ if(BatchMake_DIR)
endif(GenerateCLP_FOUND)
if(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
- ${Slicer3BatchModule}.xml
+ generateclp(Slicer3BatchModule_SOURCE
+ ${Slicer3BatchModule}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule_LOGO})
else(${Slicer3BatchModule_LOGO})
- generateclp(Slicer3BatchModule_SOURCE
+ generateclp(Slicer3BatchModule_SOURCE
${Slicer3BatchModule}.xml)
endif(${Slicer3BatchModule_LOGO})
@@ -80,22 +80,22 @@ if(BatchMake_DIR)
slicer3_set_plugins_output_path(${Slicer3BatchModule})
target_link_libraries(${Slicer3BatchModule} BatchMakeLib)
add_dependencies(${Slicer3BatchModule} ${Slicer3ExeModule})
- SET_TARGET_PROPERTIES(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
+ set_target_properties(${Slicer3BatchModule} PROPERTIES LABELS ${Slicer3BatchModule})
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
set(TARGETS ${Slicer3BatchModule})
slicer3_install_plugins(${TARGETS})
- set(RUNTIME_SUPPORT_FILES
+ set(RUNTIME_SUPPORT_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/${Slicer3BatchModule}.xml" )
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmSliceExtractor.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridSend.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/bmGridStore.bmm"
# "${BatchMake_WRAPPED_APPLICATION_DIR}/${Slicer3ExeModule}.bmm")
- install(FILES ${RUNTIME_SUPPORT_FILES}
+ install(FILES ${RUNTIME_SUPPORT_FILES}
DESTINATION ${Slicer_INSTALL_PLUGINS_SHARE_DIR}/${PROJECT_NAME})
endif(Slicer_SOURCE_DIR)
View
76 Applications/CLI/CMakeLists.txt
@@ -36,12 +36,12 @@ slicerMacroBuildCLI(
NAME DiffusionTensorEstimation
LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/ITKLogo.h
TARGET_LIBRARIES MRML vtkTeem SlicerBaseLogic
- LINK_DIRECTORIES
- ${MRML_LIB_DIR}
- ${vtkTeem_LIB_DIR}
- ${SlicerBaseLogic_SOURCE_DIR}
+ LINK_DIRECTORIES
+ ${MRML_LIB_DIR}
+ ${vtkTeem_LIB_DIR}
+ ${SlicerBaseLogic_SOURCE_DIR}
${SlicerBaseLogic_BINARY_DIR}
- INCLUDE_DIRECTORIES
+ INCLUDE_DIRECTORIES
${vtkITK_INCLUDE_DIRS}
${MRML_INCLUDE_DIRS}
${vtkTeem_INCLUDE_DIRS}
@@ -52,17 +52,17 @@ slicerMacroBuildCLI(
NAME DiffusionWeightedMasking
LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/ITKLogo.h
TARGET_LIBRARIES MRML vtkTeem SlicerBaseLogic
- LINK_DIRECTORIES
- ${MRML_LIB_DIR}
- ${vtkTeem_LIB_DIR}
- ${SlicerBaseLogic_SOURCE_DIR}
+ LINK_DIRECTORIES
+ ${MRML_LIB_DIR}
+ ${vtkTeem_LIB_DIR}
+ ${SlicerBaseLogic_SOURCE_DIR}
${SlicerBaseLogic_BINARY_DIR}
- INCLUDE_DIRECTORIES
+ INCLUDE_DIRECTORIES
${vtkITK_SOURCE_DIR}
- ${vtkITK_BINARY_DIR}
- ${MRML_SOURCE_DIR}
+ ${vtkITK_BINARY_DIR}
+ ${MRML_SOURCE_DIR}
${MRML_BINARY_DIR}
- ${vtkTeem_SOURCE_DIR}
+ ${vtkTeem_SOURCE_DIR}
${vtkTeem_BINARY_DIR}
EXECUTABLE_ONLY
)
@@ -71,17 +71,17 @@ slicerMacroBuildCLI(
NAME Seeding
LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/ITKLogo.h
TARGET_LIBRARIES MRML vtkTeem SlicerBaseLogic
- LINK_DIRECTORIES
- ${MRML_LIB_DIR}
- ${vtkTeem_LIB_DIR}
- ${SlicerBaseLogic_SOURCE_DIR}
+ LINK_DIRECTORIES
+ ${MRML_LIB_DIR}
+ ${vtkTeem_LIB_DIR}
+ ${SlicerBaseLogic_SOURCE_DIR}
${SlicerBaseLogic_BINARY_DIR}
- INCLUDE_DIRECTORIES
+ INCLUDE_DIRECTORIES
${vtkITK_SOURCE_DIR}
- ${vtkITK_BINARY_DIR}
- ${MRML_SOURCE_DIR}
+ ${vtkITK_BINARY_DIR}
+ ${MRML_SOURCE_DIR}
${MRML_BINARY_DIR}
- ${vtkTeem_SOURCE_DIR}
+ ${vtkTeem_SOURCE_DIR}
${vtkTeem_BINARY_DIR}
EXECUTABLE_ONLY
)
@@ -90,10 +90,10 @@ slicerMacroBuildCLI(
NAME DiffusionTensorMathematics
LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/ITKLogo.h
TARGET_LIBRARIES MRML vtkTeem
- LINK_DIRECTORIES
- ${MRML_LIB_DIR}
+ LINK_DIRECTORIES
+ ${MRML_LIB_DIR}
${vtkTeem_LIB_DIR}
- INCLUDE_DIRECTORIES
+ INCLUDE_DIRECTORIES
${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
${vtkTeem_SOURCE_DIR} ${vtkTeem_BINARY_DIR}
EXECUTABLE_ONLY
@@ -287,7 +287,7 @@ slicerMacroBuildCLI(
TARGET_LIBRARIES vtkITK ModuleDescriptionParser MRML SlicerBaseLogic SlicerBaseCLI
INCLUDE_DIRECTORIES
${vtkITK_SOURCE_DIR} ${vtkITK_BINARY_DIR}
- ${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
+ ${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
${SlicerBaseLogic_SOURCE_DIR} ${SlicerBaseLogic_BINARY_DIR}
)
#-----------------------------------------------------------------------------
@@ -298,7 +298,7 @@ slicerMacroBuildCLI(
TARGET_LIBRARIES vtkITK ModuleDescriptionParser MRML SlicerBaseLogic SlicerBaseCLI
INCLUDE_DIRECTORIES
${vtkITK_SOURCE_DIR} ${vtkITK_BINARY_DIR}
- ${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
+ ${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
${SlicerBaseLogic_SOURCE_DIR} ${SlicerBaseLogic_BINARY_DIR}
)
#-----------------------------------------------------------------------------
@@ -322,7 +322,7 @@ slicerMacroBuildCLI(
slicerMacroBuildCLI(
NAME ProbeVolumeWithModel
LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/ITKLogo.h
- TARGET_LIBRARIES MRML vtkTeem SlicerBaseLogic
+ TARGET_LIBRARIES MRML vtkTeem SlicerBaseLogic
INCLUDE_DIRECTORIES
${vtkITK_SOURCE_DIR} ${vtkITK_BINARY_DIR}
${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
@@ -356,13 +356,13 @@ slicerMacroBuildCLI(
#-----------------------------------------------------------------------------
slicerMacroBuildCLI(
NAME ComputeSUVBodyWeight
- LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/NAMICLogo.h
+ LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/NAMICLogo.h
# LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/CTSCLogo.h
TARGET_LIBRARIES vtkITK ModuleDescriptionParser MRML SlicerBaseLogic SlicerBaseCLI
LINK_DIRECTORIES ${vtkITK_LIB_DIR}
INCLUDE_DIRECTORIES
- ${vtkITK_SOURCE_DIR} ${vtkITK_BINARY_DIR}
- ${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
+ ${vtkITK_SOURCE_DIR} ${vtkITK_BINARY_DIR}
+ ${MRML_SOURCE_DIR} ${MRML_BINARY_DIR}
${SlicerBaseLogic_SOURCE_DIR} ${SlicerBaseLogic_BINARY_DIR}
)
#-----------------------------------------------------------------------------
@@ -397,7 +397,7 @@ slicerMacroBuildCLI(
# )
###################
-SET(cli_modules
+set(cli_modules
MRIBiasFieldCorrection
SparseFieldLevelSetContour
Realign
@@ -410,16 +410,16 @@ SET(cli_modules
)
if(Slicer_USE_MIDAS)
- LIST(APPEND cli_modules MIDASApplications)
+ list(APPEND cli_modules MIDASApplications)
endif()
if(Slicer_USE_BatchMake)
- LIST(APPEND cli_modules BatchMakeApplications)
+ list(APPEND cli_modules BatchMakeApplications)
endif()
-FOREACH(cli_module ${cli_modules})
- ADD_SUBDIRECTORY(${cli_module})
-ENDFOREACH(cli_module)
+foreach(cli_module ${cli_modules})
+ add_subdirectory(${cli_module})
+endforeach(cli_module)
option(BUILD_BRAINSTOOLS "Build the BRAINS subset of registration and segmentation tools" ON)
if(BUILD_BRAINSTOOLS)
@@ -429,6 +429,6 @@ if(BUILD_BRAINSTOOLS)
endif()
-IF(BUILD_TESTING)
- ADD_SUBDIRECTORY(Testing)
+if(BUILD_TESTING)
+ add_subdirectory(Testing)
endif()
View
24 Applications/CLI/DicomToNrrdConverter/CMakeLists.txt
@@ -11,31 +11,31 @@ if(COMMAND CMAKE_POLICY)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND CMAKE_POLICY)
-SET(RUN_EXTENDED_LOCAL_TESTING OFF CACHE BOOL "Run extended tests?")
+set(RUN_EXTENDED_LOCAL_TESTING OFF CACHE BOOL "Run extended tests?")
if (RUN_EXTENDED_LOCAL_TESTING)
- ADD_SUBDIRECTORY(ExtendedTesting)
+ add_subdirectory(ExtendedTesting)
endif (RUN_EXTENDED_LOCAL_TESTING)
-FIND_PACKAGE(ITK REQUIRED)
+find_package(ITK REQUIRED)
if (NOT ITK_USE_REVIEW)
- MESSAGE(FATAL_ERROR "ITK version was not built with ITK_USE_REVIEW true")
+ message(FATAL_ERROR "ITK version was not built with ITK_USE_REVIEW true")
endif (NOT ITK_USE_REVIEW)
if (NOT ITK_USE_REVIEW_STATISTICS)
- MESSAGE(FATAL_ERROR "ITK version was not built with ITK_USE_REVIEW_STATISTICS true")
+ message(FATAL_ERROR "ITK version was not built with ITK_USE_REVIEW_STATISTICS true")
endif (NOT ITK_USE_REVIEW_STATISTICS)
if (NOT ITK_USE_OPTIMIZED_REGISTRATION_METHODS)
- MESSAGE(FATAL_ERROR "ITK version was not built with ITK_USE_OPTIMIZED_REGISTRATION_METHODS true")
+ message(FATAL_ERROR "ITK version was not built with ITK_USE_OPTIMIZED_REGISTRATION_METHODS true")
endif (NOT ITK_USE_OPTIMIZED_REGISTRATION_METHODS)
if (Slicer_SOURCE_DIR)
- ##There's limited testing from within Slicer. There's extensive testing when run
- ##at UIowa but the testing data isn't publicly accessible yet. Other packages that
+ ##There's limited testing from within Slicer. There's extensive testing when run
+ ##at UIowa but the testing data isn't publicly accessible yet. Other packages that
##use this tool will not run either set of tests
- ADD_SUBDIRECTORY(Testing)
+ add_subdirectory(Testing)
endif (Slicer_SOURCE_DIR)
set (CLP DicomToNrrdConverter)
@@ -50,7 +50,7 @@ else (Slicer_SOURCE_DIR)
endif (Slicer_SOURCE_DIR)
add_executable(${CLP} ${${CLP}_SOURCE})
target_link_libraries (${CLP} ${ITK_LIBRARIES})
-SET_TARGET_PROPERTIES(${CLP} PROPERTIES LABELS ${CLP})
+set_target_properties(${CLP} PROPERTIES LABELS ${CLP})
if (Slicer_SOURCE_DIR)
slicer3_set_plugins_output_path(${CLP})
@@ -59,8 +59,8 @@ if (Slicer_SOURCE_DIR)
slicer3_set_plugins_output_path(${CLP}Lib)
set_target_properties (${CLP}Lib PROPERTIES COMPILE_FLAGS "-Dmain=ModuleEntryPoint")
target_link_libraries (${CLP}Lib ${ITK_LIBRARIES})
- SET_TARGET_PROPERTIES(${CLP}Lib PROPERTIES LABELS ${CLP})
-
+ set_target_properties(${CLP}Lib PROPERTIES LABELS ${CLP})
+
set(TARGETS ${CLP}Lib ${CLP})
slicer3_install_plugins(${TARGETS})
else (Slicer_SOURCE_DIR)
View
2  Applications/CLI/DicomToNrrdConverter/ExtendedTesting/CMakeLists.txt
@@ -27,7 +27,7 @@ set(DWICompareEXE ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP})
set (CLP DicomToNrrdConverter)
add_executable(${CLP}Test ${CLP}Test.cxx)
add_dependencies(${CLP}Test ${CLP})
-target_link_libraries(${CLP}Test ITKIO ITKBasicFilters)
+target_link_libraries(${CLP}Test ITKIO ITKBasicFilters)
set (DicomToNrrdConverterEXE ${Slicer_LAUNCH_COMMAND} ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP} )
set (DicomToNrrdConverter_TESTS ${Slicer_LAUNCH_COMMAND} ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP}Test )
View
2  Applications/CLI/DicomToNrrdConverter/ExtendedTesting/DicomToNrrdDWICompareTest.cmake
@@ -29,7 +29,7 @@ endif( TEST_RESULT )
# Check to see if the image we are comparing against exists. We do this here to avoid a lengthy test for no reason.
if(NOT EXISTS ${TEST_BASELINE})
- message( FATAL_ERROR "Failed: Baseline image ${TEST_BASELINE} does not exist!\n")
+ message( FATAL_ERROR "Failed: Baseline image ${TEST_BASELINE} does not exist!\n")
endif( NOT EXISTS ${TEST_BASELINE})
# run the test program, capture the stdout/stderr and the result var
View
6 Applications/CLI/DicomToNrrdConverter/Testing/CMakeLists.txt
@@ -15,7 +15,7 @@ set (CLP DicomToNrrdConverter)
add_executable(${CLP}Test ${CLP}Test.cxx)
add_dependencies(${CLP}Test ${CLP})
target_link_libraries(${CLP}Test ${CLP}Lib)
-SET_TARGET_PROPERTIES(${CLP}Test PROPERTIES LABELS ${CLP})
+set_target_properties(${CLP}Test PROPERTIES LABELS ${CLP})
#-----------------------------------------------------------------------------
# Testing
@@ -26,12 +26,12 @@ set(TEMP "${Slicer_BINARY_DIR}/Testing/Temporary")
# DicomToNrrdConverter tests
add_test(
- NAME ${CLP}Test
+ NAME ${CLP}Test
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>
ModuleEntryPoint
--inputDicomDirectory ${TEST_DATA}/DWIDicom
--outputDirectory ${TEMP}
--outputVolume DWIDicom.nhdr
)
-SET_PROPERTY(TEST ${CLP}Test PROPERTY LABELS ${CLP})
+set_property(TEST ${CLP}Test PROPERTY LABELS ${CLP})
View
12 Applications/CLI/DiffusionApplications/CMakeLists.txt
@@ -1,15 +1,15 @@
-PROJECT( DiffusionFiltering )
+project( DiffusionFiltering )
cmake_minimum_required(VERSION 2.8.2)
-INCLUDE_DIRECTORIES(${DiffusionFiltering_SOURCE_DIR}/DiffusionApplicationsCommon)
+include_directories(${DiffusionFiltering_SOURCE_DIR}/DiffusionApplicationsCommon)
-SET(filters
+set(filters
jointLMMSE
dwiNoiseFilter
dwiUNLM
#StochasticTractographyFilter
ResampleDTI
)
-FOREACH(filter ${filters})
- ADD_SUBDIRECTORY(${filter})
-ENDFOREACH(filter)
+foreach(filter ${filters})
+ add_subdirectory(${filter})
+endforeach(filter)
View
6 Applications/CLI/DiffusionApplications/ResampleDTI/CMakeLists.txt
@@ -20,6 +20,6 @@ slicerMacroBuildCLI(
${SlicerBaseCLI_SOURCE_DIR} ${SlicerBaseCLI_BINARY_DIR}
)
-IF(BUILD_TESTING)
- ADD_SUBDIRECTORY(Testing)
-ENDIF()
+if(BUILD_TESTING)
+ add_subdirectory(Testing)
+endif()
View
16 Applications/CLI/DiffusionApplications/ResampleDTI/Testing/CMakeLists.txt
@@ -11,7 +11,7 @@ set(OriginalImage ${SOURCE_DIR}/dt-helix.nrrd )
add_executable(${CLP}Test ${CLP}Test.cxx)
target_link_libraries(${CLP}Test ${CLP}Lib)
-SET_TARGET_PROPERTIES(${CLP}Test PROPERTIES LABELS ${CLP})
+set_target_properties(${CLP}Test PROPERTIES LABELS ${CLP})
#-----------------------------------------------------------------------------
set(TransformFile ${SOURCE_DIR}/rotation.tfm )
@@ -31,7 +31,7 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
${TransformedImage1}
-n 8
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
#-----------------------------------------------------------------------------
set(TransformedImage2 ${TEMP}/dt-helix-transformed2.nrrd )
@@ -53,7 +53,7 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
--correction abs
-n 8
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
#-----------------------------------------------------------------------------
set(TransformedImage3 ${TEMP}/dt-helix-transformed3.nrrd )
@@ -73,7 +73,7 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
--correction nearest
-n 8
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
#-----------------------------------------------------------------------------
set(TransformedImage4 ${TEMP}/dt-helix-transformed4.nrrd )
@@ -93,7 +93,7 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
--correction none
-o 3
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
#-----------------------------------------------------------------------------
set(TransformedImage5 ${TEMP}/dt-helix-transformed5.nrrd )
@@ -111,7 +111,7 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
${TransformedImage5}
-n 8
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
#-----------------------------------------------------------------------------
@@ -131,7 +131,7 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
${OriginalImage}
${TransformedImage}
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
#-----------------------------------------------------------------------------
set(TransformedImage6 ${TEMP}/dt-helix-transformed6.nrrd )
@@ -146,5 +146,5 @@ add_test(NAME ${testname} COMMAND ${Launcher_Command} $<TARGET_FILE:${CLP}Test>
${OriginalImage}
${TransformedImage6}
)
-SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${CLP})
+set_property(TEST ${testname} PROPERTY LABELS ${CLP})
set_tests_properties( itkTestMainExtendedFailedTest PROPERTIES WILL_FAIL true)
View
58 Applications/CLI/Java/CMakeLists.txt
@@ -1,16 +1,16 @@
-FIND_PACKAGE ( Java )
+find_package( Java )
# Since not all dashboard are running cmake 2.8.1, let's set the legacy variable
-IF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.1")
- SET(Java_JAVA_EXECUTABLE ${JAVA_RUNTIME})
- SET(Java_JAVAC_EXECUTABLE ${JAVA_COMPILE})
- SET(Java_JAR_EXECUTABLE ${JAVA_ARCHIVE})
-ENDIF()
+if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.1")
+ set(Java_JAVA_EXECUTABLE ${JAVA_RUNTIME})
+ set(Java_JAVAC_EXECUTABLE ${JAVA_COMPILE})
+ set(Java_JAR_EXECUTABLE ${JAVA_ARCHIVE})
+endif()
-IF(NOT Java_JAVAC_EXECUTABLE)
- MESSAGE(STATUS "Skipping installation of CLI/Application/Java - Set Java_JAVAC_EXECUTABLE variable to fix the problem")
- RETURN()
-ENDIF()
+if(NOT Java_JAVAC_EXECUTABLE)
+ message(STATUS "Skipping installation of CLI/Application/Java - Set Java_JAVAC_EXECUTABLE variable to fix the problem")
+ return()
+endif()
project(JavaExamples Java )
@@ -33,32 +33,32 @@ endif(WIN32 AND CMAKE_CONFIGURATION_TYPES)
set (CLP HelloWorld)
# If have the java compiler, try to compile the .java files
-IF ( Java_JAVAC_EXECUTABLE )
+if( Java_JAVAC_EXECUTABLE )
# message (STATUS "Java run time = ${Java_JAVA_EXECUTABLE}, compiler = ${Java_JAVAC_EXECUTABLE}, jar = ${Java_JAR_EXECUTABLE}")
# source files
- SET ( ${CLP}_JAR_SRCS Examples/${CLP}App.java)
+ set( ${CLP}_JAR_SRCS Examples/${CLP}App.java)
# class path
- IF ( WIN32 )
- SET ( ${CLP}_CLASSPATH
+ if( WIN32 )
+ set( ${CLP}_CLASSPATH
".\;../Examples\;${CMAKE_CURRENT_BINARY_DIR}" )
- ELSE ( WIN32 )
- SET ( ${CLP}_CLASSPATH
+ else( WIN32 )
+ set( ${CLP}_CLASSPATH
".:../Examples:${CMAKE_CURRENT_BINARY_DIR}" )
- ENDIF ( WIN32 )
+ endif( WIN32 )
# message (STATUS "Adding custom java compile target: ${Java_JAVAC_EXECUTABLE} -d ${CMAKE_CURRENT_BINARY_DIR} -classpath ${${CLP}_CLASSPATH} ${${CLP}_JAR_SRCS}")
- ADD_CUSTOM_TARGET ( ${CLP}.jar.classes ALL
+ add_custom_target( ${CLP}.jar.classes ALL
${Java_JAVAC_EXECUTABLE} -d ${CMAKE_CURRENT_BINARY_DIR} -classpath ${${CLP}_CLASSPATH} ${${CLP}_JAR_SRCS}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} )
# message (STATUS "Adding a custom target to jar it up into the plug ins directory ${CMAKE_BINARY_DIR}/${Slicer_INSTALL_PLUGINS_BIN_DIR}/${build_type}")
- ADD_CUSTOM_TARGET ( ${CLP}.jar ALL
+ add_custom_target( ${CLP}.jar ALL
${Java_JAR_EXECUTABLE} cvf ${CMAKE_BINARY_DIR}/${Slicer_PLUGINS_BIN_DIR}/${build_type}/${CLP}.jar Examples
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
- ADD_DEPENDENCIES ( ${CLP}.jar ${CLP}.jar.classes )
+ add_dependencies( ${CLP}.jar ${CLP}.jar.classes )
# install the jar file
install (
@@ -69,13 +69,13 @@ IF ( Java_JAVAC_EXECUTABLE )
#####
# install the tcl file that runs the jar file like an executable CLI
#####
-
+
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
# message (STATUS "Installing ${CLP}.tcl")
- set(TARGETS
+ set(TARGETS
${CLP}.tcl
)
@@ -96,9 +96,9 @@ IF ( Java_JAVAC_EXECUTABLE )
)
endif (Slicer_SOURCE_DIR)
-ELSE ( Java_JAVAC_EXECUTABLE)
+else( Java_JAVAC_EXECUTABLE)
message (STATUS "Unable to compile java code, skipping installation of ${CLP}.jar and .tcl")
-ENDIF ( Java_JAVAC_EXECUTABLE )
+endif( Java_JAVAC_EXECUTABLE )
##############
@@ -112,10 +112,10 @@ set (CLP SPECTRE)
#####
if (Slicer_SOURCE_DIR)
- # install each target in the production area (where it would appear in an
- # installation) and install each target in the developer area (for running
+ # install each target in the production area (where it would appear in an
+ # installation) and install each target in the developer area (for running
# from a build)
- set(TARGETS
+ set(TARGETS
${CLP}.tcl
# SPECTRE_2010-04-01.jar