]> Creatis software - bbtk.git/blob - kernel/cmake/BBTKConfigurePackage_doc.cmake
Windows compilation
[bbtk.git] / kernel / cmake / BBTKConfigurePackage_doc.cmake
1 #---------------------------------------------------------------------------
2 IF(BBTK_CORE_PACKAGE)
3   # If a core package set doc options from bbtk global ones
4   #IF (BUILD_BBTK_DOC_PACKAGE)
5   #  SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC ON)
6   #ELSE (BUILD_BBTK_DOC_PACKAGE)
7   #  SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC OFF)
8   #ENDIF (BUILD_BBTK_DOC_PACKAGE)
9   IF (BUILD_BBTK_DOC_DOXYGEN)
10     SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC ON)
11   ELSE (BUILD_BBTK_DOC_DOXYGEN)
12     SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC OFF)
13   ENDIF (BUILD_BBTK_DOC_DOXYGEN)
14 ELSE(BBTK_CORE_PACKAGE)
15   # If not a core package 
16   # Create the build doc options
17   #OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC 
18   #  "Build the bbtk package ${BBTK_PACKAGE_NAME} html documentation ?" OFF)
19   #SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
20   OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC 
21     "Build the bbtk package ${BBTK_PACKAGE_NAME} doxygen documentation ?" OFF)
22   SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
23 ENDIF(BBTK_CORE_PACKAGE)
24 #---------------------------------------------------------------------------
25
26 #----------------------------------------------------------------------------
27
28
29 #----------------------------------------------------------------------------
30 # Doxygen
31 #----------------------------------------------------------------------------
32 IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
33   SET(${BBTK_PACKAGE_NAME}_DOXYGEN_REL_PATH ${BBTK_PACKAGE_NAME})
34   SUBDIRS(doxygen)
35 ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
36 #----------------------------------------------------------------------------
37
38
39
40 #----------------------------------------------------------------------------
41 # bbdoc
42 #---------------------------------------------------------------------------
43 #IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
44   SUBDIRS(bbdoc)
45 #ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
46 #---------------------------------------------------------------------------