#=========================================================
INCLUDE(cmake/common.cmake)
#=========================================================
-#Support for the CTest dashboard testing system
-INCLUDE(CTest)
-#=========================================================
#=========================================================
# Find ITK (required)
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})
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)
add_subdirectory(vv)
ENDIF(CLITK_BUILD_VV)
+
+#=========================================================
+#Support for the CTest dashboard testing system
+INCLUDE(CTest)
+#=========================================================
+add_subdirectory(tests)
+add_subdirectory(tests/tools)
+#=========================================================
+
+
#=========================================================