]> Creatis software - creaMiniTools.git/blob - cmake/UserDefineOptions.cmake
#3060 CreaMiniTools Bug New Normal - application rescaleSlopeIntercept not saving
[creaMiniTools.git] / cmake / UserDefineOptions.cmake
1 #-----------------------------------------------------------------------------
2 # messages compilation options 
3 OPTION ( BUILD_${PROJECT_NAME}_DOC "Build documentation for ${PROJECT_NAME}." OFF)
4 SWITCH_ON_IF_BUILD_ALL(BUILD_${PROJECT_NAME}_DOC)
5 #-----------------------------------------------------------------------------
6 IF(BUILD_${PROJECT_NAME}_DOC)
7
8   OPTION(BUILD_${PROJECT_NAME}_DOC_PACKAGE 
9     "Build ${PROJECT_NAME} packages documentation (bbi+dot)."       ON)
10   OPTION(BUILD_${PROJECT_NAME}_DOC_DOXYGEN 
11     "Build doxygen documentation (doxygen)."             ON)
12   OPTION(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF 
13     "Build ${PROJECT_NAME} Guides', PDF format (latex)."            ON)
14   OPTION(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML 
15     "Build ${PROJECT_NAME} Guides', HTML format (latex+tth)."       ON)
16
17 ELSE(BUILD_${PROJECT_NAME}_DOC)
18   
19   IF(BUILD_${PROJECT_NAME}_DOC_PACKAGE)
20     SET(BUILD_${PROJECT_NAME}_DOC_PACKAGE OFF CACHE BOOL 
21       "Build ${PROJECT_NAME} packages documentation (bbdoc+dot)."       FORCE)
22   ENDIF(BUILD_${PROJECT_NAME}_DOC_PACKAGE)
23   IF(BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
24     SET(BUILD_${PROJECT_NAME}_DOC_DOXYGEN OFF CACHE BOOL 
25       "Build doxygen documentation. (doxygen)"          FORCE)
26   ENDIF(BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
27   
28   IF(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
29     SET(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OFF CACHE BOOL 
30       "Build ${PROJECT_NAME} Guides', PDF format (latex)."      FORCE)
31   ENDIF(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
32   
33   IF(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
34     SET(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML OFF CACHE BOOL 
35       "Build ${PROJECT_NAME} Guides', HTML format (latex tth)."         FORCE)
36   ENDIF(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
37   
38 ENDIF(BUILD_${PROJECT_NAME}_DOC)
39 #-----------------------------------------------------------------------------