CMakeLists.txt 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. ###########################################################################
  2. #
  3. # Library: CTK
  4. #
  5. # Copyright (c) 2010 Kitware Inc.
  6. #
  7. # Licensed under the Apache License, Version 2.0 (the "License");
  8. # you may not use this file except in compliance with the License.
  9. # You may obtain a copy of the License at
  10. #
  11. # http://www.commontk.org/LICENSE
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. #
  19. ###########################################################################
  20. CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
  21. #-----------------------------------------------------------------------------
  22. # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
  23. #
  24. SET(project_policies
  25. CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
  26. CMP0002 # NEW: Logical target names must be globally unique.
  27. CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths.
  28. CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
  29. CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
  30. CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
  31. CMP0007 # NEW: List command no longer ignores empty elements.
  32. CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
  33. CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
  34. CMP0010 # NEW: Bad variable reference syntax is an error.
  35. CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
  36. CMP0012 # NEW: if() recognizes numbers and boolean constants.
  37. CMP0013 # NEW: Duplicate binary directories are not allowed.
  38. CMP0014 # NEW: Input directories must have CMakeLists.txt
  39. )
  40. FOREACH(policy ${project_policies})
  41. IF(POLICY ${policy})
  42. CMAKE_POLICY(SET ${policy} NEW)
  43. ENDIF()
  44. ENDFOREACH()
  45. #-----------------------------------------------------------------------------
  46. PROJECT(CTK)
  47. #-----------------------------------------------------------------------------
  48. # Default to shared library
  49. SET(CTK_LIBRARY_MODE "SHARED")
  50. SET(CTK_BUILD_SHARED_LIBS TRUE)
  51. #-----------------------------------------------------------------------------
  52. # Output directories.
  53. #
  54. IF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
  55. SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CTK_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all libraries.")
  56. ENDIF()
  57. IF(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
  58. SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CTK_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all libraries.")
  59. ENDIF()
  60. IF(NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
  61. SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CTK_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all libraries.")
  62. ENDIF()
  63. #-----------------------------------------------------------------------------
  64. # Install directories, used for install rules.
  65. #
  66. SET(CTK_INSTALL_BIN_DIR "bin")
  67. SET(CTK_INSTALL_LIB_DIR "lib")
  68. SET(CTK_INSTALL_INCLUDE_DIR "include")
  69. SET(CTK_INSTALL_DOC_DIR "doc")
  70. #-----------------------------------------------------------------------------
  71. # CTK version number. An even minor number corresponds to releases.
  72. #
  73. SET(CTK_MAJOR_VERSION 0)
  74. SET(CTK_MINOR_VERSION 1)
  75. SET(CTK_BUILD_VERSION 0)
  76. SET(CTK_VERSION
  77. "${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}.${CTK_BUILD_VERSION}")
  78. # Append the library version information to the library target
  79. # properties. A parent project may set its own properties and/or may
  80. # block this.
  81. IF(NOT CTK_NO_LIBRARY_VERSION)
  82. SET(CTK_LIBRARY_PROPERTIES ${CTK_LIBRARY_PROPERTIES}
  83. VERSION "${CTK_VERSION}"
  84. SOVERSION "${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}"
  85. )
  86. ENDIF()
  87. #-----------------------------------------------------------------------------
  88. # Update CMake module path
  89. # Note: FindXXX.cmake script specific to utility should be copied into Utilities/CMake
  90. #
  91. SET(CMAKE_MODULE_PATH
  92. "${CMAKE_CURRENT_SOURCE_DIR}/Utilities/CMake"
  93. "${CMAKE_CURRENT_SOURCE_DIR}/CMake"
  94. ${CMAKE_MODULE_PATH})
  95. #-----------------------------------------------------------------------------
  96. # Clear CTK_BASE_INCLUDE_DIRS and CTK_BASE_LIBRARIES
  97. #
  98. SET(CTK_BASE_LIBRARIES CACHE INTERNAL "CTK libraries" FORCE)
  99. SET(CTK_BASE_INCLUDE_DIRS CACHE INTERNAL "CTK includes" FORCE)
  100. #-----------------------------------------------------------------------------
  101. # CMake Function(s) and Macro(s)
  102. #
  103. INCLUDE(CMake/ctkMacroParseArguments.cmake)
  104. INCLUDE(CMake/ctkMacroListFilter.cmake)
  105. INCLUDE(CMake/ctkMacroBuildLib.cmake)
  106. INCLUDE(CMake/ctkMacroBuildPlugin.cmake)
  107. INCLUDE(CMake/ctkMacroBuildApp.cmake)
  108. INCLUDE(CMake/ctkMacroBuildQtDesignerPlugin.cmake)
  109. INCLUDE(CMake/ctkMacroSetupQt.cmake)
  110. INCLUDE(CMake/ctkMacroTargetLibraries.cmake) # Import multiple macros
  111. INCLUDE(CMake/ctkFunctionExtractOptionNameAndValue.cmake)
  112. INCLUDE(CMake/ctkFunctionExecuteProcess.cmake)
  113. INCLUDE(CMake/ctkMacroValidateBuildOptions.cmake)
  114. INCLUDE(CMake/ctkMacroAddCtkLibraryOptions.cmake)
  115. INCLUDE(CMake/ctkFunctionGenerateDGraphInput.cmake)
  116. INCLUDE(CMake/ctkFunctionGenerateProjectXml.cmake)
  117. # Used by CTKGenerateCTKConfig.cmake
  118. SET(CTK_CMAKE_DIR ${CTK_SOURCE_DIR}/CMake)
  119. SET(CTK_CMAKE_UTILITIES_DIR ${CTK_SOURCE_DIR}/Utilities/CMake)
  120. #-----------------------------------------------------------------------------
  121. # Patch program
  122. #
  123. FIND_PROGRAM(CTK_PATCH_EXECUTABLE patch
  124. "C:/Program Files/GnuWin32/bin"
  125. "C:/Program Files (x86)/GnuWin32/bin")
  126. MARK_AS_ADVANCED(CTK_PATCH_EXECUTABLE)
  127. #-----------------------------------------------------------------------------
  128. # Testing
  129. #
  130. OPTION(BUILD_TESTING "Test the project" ON)
  131. IF(BUILD_TESTING)
  132. ENABLE_TESTING()
  133. INCLUDE(CTest)
  134. SET(CPP_TEST_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
  135. MARK_AS_ADVANCED(TCL_TCLSH DART_ROOT)
  136. # Setup file for setting custom ctest vars
  137. CONFIGURE_FILE(
  138. CMake/CTestCustom.cmake.in
  139. ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake
  140. @ONLY
  141. )
  142. # Configuration for the CMake-generated test driver
  143. SET(CMAKE_TESTDRIVER_EXTRA_INCLUDES "#include <stdexcept>")
  144. SET(CMAKE_TESTDRIVER_BEFORE_TESTMAIN "
  145. try
  146. {")
  147. SET(CMAKE_TESTDRIVER_AFTER_TESTMAIN " }
  148. catch( std::exception & excp )
  149. {
  150. fprintf(stderr,\"%s\\n\",excp.what());
  151. return EXIT_FAILURE;
  152. }
  153. catch( ... )
  154. {
  155. printf(\"Exception caught in the test driver\\n\");
  156. return EXIT_FAILURE;
  157. }
  158. ")
  159. ENDIF()
  160. #-----------------------------------------------------------------------------
  161. # Coverage
  162. #
  163. OPTION(WITH_COVERAGE "Enable/Disable coverage" OFF)
  164. #-----------------------------------------------------------------------------
  165. # Additional CXX/C Flags
  166. #
  167. SET(ADDITIONAL_C_FLAGS "" CACHE STRING "Additional C Flags")
  168. MARK_AS_ADVANCED(ADDITIONAL_C_FLAGS)
  169. SET(ADDITIONAL_CXX_FLAGS "" CACHE STRING "Additional CXX Flags")
  170. MARK_AS_ADVANCED(ADDITIONAL_CXX_FLAGS)
  171. #-----------------------------------------------------------------------------
  172. # Set symbol visibility Flags
  173. #
  174. IF(CMAKE_CXX_COMPILER_ID)
  175. # Set the default symbol visibility to hidden for gcc
  176. IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
  177. SET(VISIBILITY_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
  178. ENDIF()
  179. ENDIF()
  180. #-----------------------------------------------------------------------------
  181. # Set coverage Flags
  182. #
  183. IF(WITH_COVERAGE)
  184. IF(CMAKE_CXX_COMPILER_ID AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
  185. SET(coverage_flags "-g -fdiagnostics-show-option -fprofile-arcs -ftest-coverage -O3 -DNDEBUG")
  186. SET(COVERAGE_CXX_FLAGS ${coverage_flags})
  187. SET(COVERAGE_C_FLAGS ${coverage_flags})
  188. ENDIF()
  189. ENDIF()
  190. #-----------------------------------------------------------------------------
  191. # CTK C/CXX Flags
  192. #
  193. SET(CTK_C_FLAGS "${COVERAGE_C_FLAGS} ${ADDITIONAL_C_FLAGS}")
  194. SET(CTK_CXX_FLAGS "${VISIBILITY_CXX_FLAGS} ${COVERAGE_CXX_FLAGS} ${ADDITIONAL_CXX_FLAGS}")
  195. #-----------------------------------------------------------------------------
  196. # QT
  197. #
  198. ctkMacroSetupQt()
  199. # Update CTK_BASE_LIBRARIES with QT libraries
  200. IF(QT4_FOUND)
  201. SET(CTK_BASE_LIBRARIES ${CTK_BASE_LIBRARIES} ${QT_LIBRARIES} CACHE INTERNAL "CTK libraries" FORCE)
  202. ENDIF()
  203. #-----------------------------------------------------------------------------
  204. # CTK Libraries - Use ON or OFF to indicate if the library should be built by default
  205. #
  206. SET(CTK_LIBS
  207. Core:ON
  208. Widgets:OFF
  209. DICOM/Core:OFF
  210. DICOM/Widgets:OFF
  211. Scripting/Python/Core:OFF
  212. Scripting/Python/Widgets:OFF
  213. Visualization/VTK/Core:OFF
  214. Visualization/VTK/Widgets:OFF
  215. Visualization/XIP:OFF
  216. )
  217. #-----------------------------------------------------------------------------
  218. # CTK Plugins - Use ON or OFF to indicate if the plugin should be built by default
  219. #
  220. SET(CTK_PLUGINS
  221. #org.commontk.cli:OFF
  222. )
  223. #-----------------------------------------------------------------------------
  224. # CTK Applications - Use ON or OFF to indicate if the application should be built by default
  225. #
  226. SET(CTK_APPLICATIONS
  227. ctkDICOM:OFF
  228. ctkDICOMIndexer:OFF
  229. )
  230. #-----------------------------------------------------------------------------
  231. # To make options show up in both CTK-SuperBuild and CTK regular build, let's add them
  232. # before the SuperBuild script is included
  233. #
  234. # Let's mark as advanced some default properties
  235. MARK_AS_ADVANCED(CMAKE_INSTALL_PREFIX)
  236. MARK_AS_ADVANCED(DART_TESTING_TIMEOUT)
  237. # KWStyle
  238. OPTION(CTK_USE_KWSTYLE "Enable sourcecode-based style tests." OFF)
  239. #MARK_AS_ADVANCED(CTK_USE_KWSTYLE)
  240. #---------------------------------------------------------------------------
  241. # Documentation
  242. ADD_SUBDIRECTORY( Documentation )
  243. #---------------------------------------------------------------------------
  244. # Will contain a list of sub-directory without option ON or OFF
  245. #
  246. SET(CTK_LIBS_SUBDIRS )
  247. SET(CTK_PLUGINS_SUBDIRS )
  248. SET(CTK_APPLICATIONS_SUBDIRS )
  249. #-----------------------------------------------------------------------------
  250. # Build options associated with CTK libraries
  251. # Note also that if
  252. # the file Libs/<DIR>/<LIBNAME>/ctk_library_options.cmake exists and look like:
  253. #
  254. # SET(ctk_library_options
  255. # OPT1:OFF
  256. # OPT2:ON
  257. # )
  258. #
  259. # In addition to 'CTK_LIB_<DIR>/<LIBNAME>' option, the following ones
  260. # will also be available in CMake configure menu:
  261. # CTK_LIB_<DIR>/<LIBNAME>_OPT1 (set to OFF)
  262. # CTK_LIB_<DIR>/<LIBNAME>_OPT2 (set to ON)
  263. #
  264. FOREACH(lib ${CTK_LIBS})
  265. ctkFunctionExtractOptionNameAndValue(${lib} lib_name lib_value)
  266. OPTION(CTK_LIB_${lib_name} "Enable ${lib_name} Library." ${lib_value})
  267. ctkMacroAddCtkLibraryOptions(${lib_name})
  268. LIST(APPEND CTK_LIBS_SUBDIRS "${lib_name}")
  269. ENDFOREACH()
  270. # Build options associated with CTK plugins
  271. FOREACH(plugin ${CTK_PLUGINS})
  272. ctkFunctionExtractOptionNameAndValue(${plugin} plugin_name plugin_value)
  273. OPTION(CTK_PLUGIN_${plugin_name} "Build ${plugin_name} Plugin." ${plugin_value})
  274. LIST(APPEND CTK_PLUGINS_SUBDIRS "${plugin_name}")
  275. ENDFOREACH()
  276. # Build options associated with CTK applications
  277. FOREACH(app ${CTK_APPLICATIONS})
  278. ctkFunctionExtractOptionNameAndValue(${app} app_name app_value)
  279. OPTION(CTK_APP_${app_name} "Build ${app_name} Application." ${app_value})
  280. LIST(APPEND CTK_APPLICATIONS_SUBDIRS "${app_name}")
  281. ENDFOREACH()
  282. #-----------------------------------------------------------------------------
  283. # Superbuild Option - Enabled by default
  284. #
  285. OPTION(CTK_SUPERBUILD "Build CTK and the projects it depends on via SuperBuild.cmake." ON)
  286. MARK_AS_ADVANCED(CTK_SUPERBUILD)
  287. #-----------------------------------------------------------------------------
  288. # Generate target_directories list - List of directory corresponding to the different
  289. # libraries, plugins and applications associated with the corresponding option name.
  290. #
  291. # Create list of directories corresponding to the enabled targets
  292. SET(target_directories)
  293. FOREACH(lib ${CTK_LIBS_SUBDIRS})
  294. SET(option_name CTK_LIB_${lib})
  295. LIST(APPEND target_directories "${CMAKE_CURRENT_SOURCE_DIR}/Libs/${lib}^^${option_name}")
  296. ENDFOREACH()
  297. FOREACH(plugin ${CTK_PLUGINS_SUBDIRS})
  298. SET(option_name CTK_PLUGIN_${plugin})
  299. LIST(APPEND target_directories "${CMAKE_CURRENT_SOURCE_DIR}/Plugins/${plugin}^^${option_name}")
  300. ENDFOREACH()
  301. FOREACH(app ${CTK_APPLICATIONS_SUBDIRS})
  302. SET(option_name CTK_APP_${app})
  303. LIST(APPEND target_directories "${CMAKE_CURRENT_SOURCE_DIR}/Applications/${app}^^${option_name}")
  304. ENDFOREACH()
  305. #MESSAGE(STATUS target_directories:${target_directories})
  306. #-----------------------------------------------------------------------------
  307. # Compile DGraph - An application allowing to check for cycle in DAG and also obtain the
  308. # topological order.
  309. TRY_COMPILE(RESULT_VAR ${CTK_BINARY_DIR}/Utilities/DGraph ${CTK_SOURCE_DIR}/Utilities/DGraph
  310. DGraph
  311. CMAKE_FLAGS
  312. -DQT_QMAKE_EXECUTABLE:BOOL=${QT_QMAKE_EXECUTABLE}
  313. -DCMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
  314. OUTPUT_VARIABLE output)
  315. IF(NOT RESULT_VAR)
  316. MESSAGE(FATAL_ERROR "Failed to compile DGraph application.\n${output}")
  317. ENDIF()
  318. FIND_PROGRAM(DGraph_EXECUTABLE DGraph
  319. "${CTK_BINARY_DIR}/Utilities/DGraph/"
  320. "${CTK_BINARY_DIR}/Utilities/DGraph/bin/"
  321. "${CTK_BINARY_DIR}/Utilities/DGraph/Debug/"
  322. "${CTK_BINARY_DIR}/Utilities/DGraph/Release/")
  323. MARK_AS_ADVANCED(DGraph_EXECUTABLE)
  324. #-----------------------------------------------------------------------------
  325. # Let's make sure the enabled/disabled libraries, plugins or applications are coherent
  326. #
  327. ctkFunctionGenerateDGraphInput(${CTK_BINARY_DIR} "${target_directories}" FALSE)
  328. ctkMacroValidateBuildOptions("${CTK_BINARY_DIR}" "${DGraph_EXECUTABLE}" "${target_directories}")
  329. #-----------------------------------------------------------------------------
  330. # DGraph
  331. #
  332. # Generate DGraph input file expected by DGraph
  333. ctkFunctionGenerateDGraphInput(${CTK_BINARY_DIR} "${target_directories}" TRUE)
  334. # Obtain list of target ordered topologically
  335. ctkFunctionExecuteProcess(
  336. COMMAND "${DGraph_EXECUTABLE}" "${CTK_BINARY_DIR}/DGraphInput.txt"
  337. PATH_LIST \"${QT_INSTALLED_LIBRARY_DIR}\"
  338. WORKING_DIRECTORY ${CTK_BINARY_DIR}
  339. RESULT_VARIABLE RESULT_VAR
  340. OUTPUT_VARIABLE CTEST_PROJECT_SUBPROJECTS
  341. ERROR_VARIABLE error
  342. OUTPUT_STRIP_TRAILING_WHITESPACE
  343. )
  344. IF(RESULT_VAR)
  345. MESSAGE(FATAL_ERROR "Failed to obtain list of target ordered topologically.\n${RESULT_VAR}\n${CTK_BINARY_DIR}\n${error}")
  346. ENDIF()
  347. # If the list of subproject is empty, let's at least build CTKCore
  348. LIST(LENGTH CTEST_PROJECT_SUBPROJECTS subproject_count)
  349. IF (subproject_count EQUAL 0)
  350. SET(CTEST_PROJECT_SUBPROJECTS CTKCore)
  351. ENDIF()
  352. # Configure CTestConfigSubProject.cmake used that could be used by CTest scripts
  353. CONFIGURE_FILE(${CTK_SOURCE_DIR}/CTestConfigSubProject.cmake.in
  354. ${CTK_BINARY_DIR}/CTestConfigSubProject.cmake)
  355. #-----------------------------------------------------------------------------
  356. # Project.xml
  357. #
  358. # Generate Project.xml file expected by the CTest driver script
  359. ctkFunctionGenerateProjectXml(${CTK_BINARY_DIR} ${PROJECT_NAME} "${target_directories}" ${CTK_SUPERBUILD})
  360. #-----------------------------------------------------------------------------
  361. # Superbuild script
  362. #
  363. IF(CTK_SUPERBUILD)
  364. INCLUDE("${CMAKE_CURRENT_SOURCE_DIR}/SuperBuild.cmake")
  365. RETURN()
  366. ENDIF()
  367. #-----------------------------------------------------------------------------
  368. # CTK_SUPERBUILD_BINARY_DIR
  369. # If CTK_SUPERBUILD_BINARY_DIR isn't defined, it means CTK is *NOT* build using Superbuild.
  370. # In that specific case, CTK_SUPERBUILD_BINARY_DIR should default to CTK_BINARY_DIR
  371. IF(NOT DEFINED CTK_SUPERBUILD_BINARY_DIR)
  372. SET(CTK_SUPERBUILD_BINARY_DIR ${CTK_BINARY_DIR})
  373. ENDIF()
  374. #-----------------------------------------------------------------------------
  375. # Configure files with settings
  376. #
  377. CONFIGURE_FILE(${CTK_SOURCE_DIR}/UseCTK.cmake.in
  378. ${CTK_SUPERBUILD_BINARY_DIR}/UseCTK.cmake COPYONLY IMMEDIATE)
  379. #-----------------------------------------------------------------------------
  380. # Set C/CXX Flags
  381. #
  382. SET(CMAKE_CXX_FLAGS ${CTK_CXX_FLAGS})
  383. SET(CMAKE_C_FLAGS ${CTK_C_FLAGS})
  384. #-----------------------------------------------------------------------------
  385. # Add CTK library subdirectories
  386. #
  387. FOREACH(lib ${CTK_LIBS_SUBDIRS})
  388. IF (CTK_LIB_${lib})
  389. ADD_SUBDIRECTORY(Libs/${lib})
  390. ENDIF()
  391. ENDFOREACH()
  392. #-----------------------------------------------------------------------------
  393. # Add CTK plugin subdirectories
  394. #
  395. FOREACH(plugin ${CTK_PLUGINS_SUBDIRS})
  396. IF (CTK_PLUGIN_${plugin})
  397. ADD_SUBDIRECTORY(Plugins/${plugin})
  398. ENDIF()
  399. ENDFOREACH()
  400. #-----------------------------------------------------------------------------
  401. # Add CTK application subdirectories
  402. #
  403. FOREACH(app ${CTK_APPLICATIONS_SUBDIRS})
  404. IF (CTK_APP_${app})
  405. ADD_SUBDIRECTORY(Applications/${app})
  406. ENDIF()
  407. ENDFOREACH()
  408. #-----------------------------------------------------------------------------
  409. # Add general purpose subdirectories
  410. #
  411. #ADD_SUBDIRECTORY(Testing)
  412. #ADD_SUBDIRECTORY(Examples)
  413. #-----------------------------------------------------------------------------
  414. # Style Checking configuration
  415. #
  416. INCLUDE(Utilities/KWStyle/KWStyle.cmake)
  417. #-----------------------------------------------------------------------------
  418. # The commands in this directory are intended to be executed as
  419. # the end of the whole configuration process, as a "last step".
  420. # This directory is typically the last SUBDIRS in the main CMakeLists.txt.
  421. ADD_SUBDIRECTORY(Utilities/LastConfigureStep)