]> Creatis software - bbtkGEditor.git/blob - cmake/UserDefineOptions.cmake
Feature #1771 Add licence terms for all files.
[bbtkGEditor.git] / cmake / UserDefineOptions.cmake
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 #                        pour la Santé)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 #
7 #  This software is governed by the CeCILL-B license under French law and 
8 #  abiding by the rules of distribution of free software. You can  use, 
9 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 #  license as circulated by CEA, CNRS and INRIA at the following URL 
11 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 #  or in the file LICENSE.txt.
13 #
14 #  As a counterpart to the access to the source code and  rights to copy,
15 #  modify and redistribute granted by the license, users are provided only
16 #  with a limited warranty  and the software's author,  the holder of the
17 #  economic rights,  and the successive licensors  have only  limited
18 #  liability. 
19 #
20 #  The fact that you are presently reading this means that you have had
21 #  knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------ */  
23
24
25 #-----------------------------------------------------------------------------
26 # messages compilation options 
27 OPTION ( BUILD_${PROJECT_NAME}_DOC "Build documentation for ${PROJECT_NAME}." OFF)
28 SWITCH_ON_IF_BUILD_ALL(BUILD_${PROJECT_NAME}_DOC)
29 #-----------------------------------------------------------------------------
30 IF(BUILD_${PROJECT_NAME}_DOC)
31
32   OPTION(BUILD_${PROJECT_NAME}_DOC_PACKAGE 
33     "Build ${PROJECT_NAME} packages documentation (bbi+dot)."       ON)
34   OPTION(BUILD_${PROJECT_NAME}_DOC_DOXYGEN 
35     "Build doxygen documentation (doxygen)."             ON)
36   OPTION(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF 
37     "Build ${PROJECT_NAME} Guides', PDF format (latex)."            ON)
38   OPTION(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML 
39     "Build ${PROJECT_NAME} Guides', HTML format (latex+tth)."       ON)
40
41 ELSE(BUILD_${PROJECT_NAME}_DOC)
42   
43   IF(BUILD_${PROJECT_NAME}_DOC_PACKAGE)
44     SET(BUILD_${PROJECT_NAME}_DOC_PACKAGE OFF CACHE BOOL 
45       "Build ${PROJECT_NAME} packages documentation (bbdoc+dot)."       FORCE)
46   ENDIF(BUILD_${PROJECT_NAME}_DOC_PACKAGE)
47   IF(BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
48     SET(BUILD_${PROJECT_NAME}_DOC_DOXYGEN OFF CACHE BOOL 
49       "Build doxygen documentation. (doxygen)"          FORCE)
50   ENDIF(BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
51   
52   IF(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
53     SET(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OFF CACHE BOOL 
54       "Build ${PROJECT_NAME} Guides', PDF format (latex)."      FORCE)
55   ENDIF(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
56   
57   IF(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
58     SET(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML OFF CACHE BOOL 
59       "Build ${PROJECT_NAME} Guides', HTML format (latex tth)."         FORCE)
60   ENDIF(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
61   
62 ENDIF(BUILD_${PROJECT_NAME}_DOC)
63 #-----------------------------------------------------------------------------