]> Creatis software - clitk.git/blobdiff - CMakeLists.txt
First doxygen support with option BUILD_DOXYGEN in cmake and "make Documentation".
[clitk.git] / CMakeLists.txt
index 0becec0cc565972e71d1c1089fe252cab7053c65..6f3a808b32ac68a1442317950512230e03110907 100644 (file)
@@ -11,9 +11,6 @@ PROJECT(clitk)
 #=========================================================
 INCLUDE(cmake/common.cmake)
 #=========================================================
-#Support for the CTest dashboard testing system
-INCLUDE(CTest)
-#=========================================================
 
 #=========================================================
 # Find ITK (required)
@@ -54,6 +51,15 @@ ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
 ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")  
 #=========================================================
 
+#=========================================================
+# If the user choose to build documentation, then search for Doxygen executables.
+OPTION(BUILD_DOXYGEN "Build Doxygen Documentation" OFF)
+IF(BUILD_DOXYGEN)
+  FIND_PACKAGE(Doxygen)
+  ADD_SUBDIRECTORY(Doxygen)
+ENDIF(BUILD_DOXYGEN)
+#=========================================================
+
 #=========================================================
 # Building in the source tree is forbidden
 IF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
@@ -78,6 +84,7 @@ add_subdirectory(tools)
 add_subdirectory(segmentation)
 add_subdirectory(registration)
 
+
 # Compilation options
 OPTION(CLITK_EXPERIMENTAL "Enable experimental software and features" OFF)
 OPTION(CLITK_BUILD_TOOLS "Build command-line tools" OFF)
@@ -89,5 +96,15 @@ IF (CLITK_BUILD_VV)
   add_subdirectory(vv)
 ENDIF(CLITK_BUILD_VV)
 
+
+#=========================================================
+#Support for the CTest dashboard testing system
+INCLUDE(CTest)
+#=========================================================
+add_subdirectory(tests)
+add_subdirectory(tests/tools)
+#=========================================================
+
+
 #=========================================================