]> Creatis software - bbtk.git/blob - kernel/doc/CMakeLists.txt
Feature #1774
[bbtk.git] / kernel / doc / CMakeLists.txt
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  # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7  # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8  #
9  #  This software is governed by the CeCILL-B license under French law and
10  #  abiding by the rules of distribution of free software. You can  use,
11  #  modify and/ or redistribute the software under the terms of the CeCILL-B
12  #  license as circulated by CEA, CNRS and INRIA at the following URL
13  #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14  #  or in the file LICENSE.txt.
15  #
16  #  As a counterpart to the access to the source code and  rights to copy,
17  #  modify and redistribute granted by the license, users are provided only
18  #  with a limited warranty  and the software's author,  the holder of the
19  #  economic rights,  and the successive licensors  have only  limited
20  #  liability.
21  #
22  #  The fact that you are presently reading this means that you have had
23  #  knowledge of the CeCILL-B license and that you accept its terms.
24  # ------------------------------------------------------------------------ */
25
26
27
28
29 #-----------------------------------------------------------------------------
30 IF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_DOXYGEN)
31   INCLUDE(../cmake/BBTKBuildDoxygenDoc.cmake)
32   ADD_SUBDIRECTORY(bbtkDoxygen)
33 ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_DOXYGEN)
34 #-----------------------------------------------------------------------------
35
36
37 #-----------------------------------------------------------------------------
38 IF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_PDF)
39   INCLUDE(../cmake/BBTKBuildLatexDoc.cmake)
40 ELSE(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_HTML)
41   MACRO(BBTK_BUILD_LATEX_DOC TEX_FILE)
42   ENDMACRO(BBTK_BUILD_LATEX_DOC)
43 ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_PDF)
44 #-----------------------------------------------------------------------------
45
46
47 #-----------------------------------------------------------------------------
48 IF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_HTML)
49   INCLUDE(../cmake/BBTKBuildHtmlDocFromLatex.cmake)
50 ELSE(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_HTML)
51   MACRO(BBTK_BUILD_HTML_DOC_FROM_LATEX SOURCE)
52   ENDMACRO(BBTK_BUILD_HTML_DOC_FROM_LATEX)
53 ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_HTML)
54 #-----------------------------------------------------------------------------
55
56
57 #-----------------------------------------------------------------------------
58 IF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_PDF OR BUILD_BBTK_DOC_GUIDES_HTML)
59   ADD_SUBDIRECTORY(bbtkUsersGuide)
60   ADD_SUBDIRECTORY(bbtkPackageDevelopersGuide)
61   ADD_SUBDIRECTORY(bbtkDevelopersGuide)
62 ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_PDF OR BUILD_BBTK_DOC_GUIDES_HTML)
63 #-----------------------------------------------------------------------------
64
65
66 #-----------------------------------------------------------------------------
67 # Web site 
68 IF(BUILD_BBTK_DOC)
69   # Configure main page index.html for build tree
70   CONFIGURE_FILE(
71     index.html.in
72     ${BBTK_DOC_BUILD_PATH}/index.html
73     @ONLY
74     )
75   # Install it 
76   INSTALL( 
77     FILES ${BBTK_DOC_BUILD_PATH}/index.html 
78     DESTINATION ${BBTK_DOC_INSTALL_PATH}
79     ) 
80   # Configure main page index-no-frame.html for build tree
81    CONFIGURE_FILE(
82     index-no-frame.html.in
83     ${BBTK_DOC_BUILD_PATH}/index-no-frame.html
84     @ONLY
85     )
86   # Install it 
87   INSTALL( 
88     FILES ${BBTK_DOC_BUILD_PATH}/index-no-frame.html 
89     DESTINATION ${BBTK_DOC_INSTALL_PATH}
90     ) 
91   # Configure help_contents.html for build tree
92    CONFIGURE_FILE(
93     help_contents.html.in
94     ${BBTK_DOC_BUILD_PATH}/help_contents.html
95     @ONLY
96     )
97   # Install it 
98   INSTALL( 
99     FILES ${BBTK_DOC_BUILD_PATH}/help_contents.html
100     DESTINATION ${BBTK_DOC_INSTALL_PATH}
101     ) 
102
103   # Recurse it bbtkWebSite dir
104   ADD_SUBDIRECTORY(bbtkWebSite)
105
106
107
108 ENDIF(BUILD_BBTK_DOC)
109 #-----------------------------------------------------------------------------
110