]> Creatis software - creaWT.git/blob - wt/doc/CMakeLists.txt
2536 BBTK Feature New Normal wt-version Package
[creaWT.git] / wt / doc / CMakeLists.txt
1
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 #
10 #  This software is governed by the CeCILL-B license under French law and 
11 #  abiding by the rules of distribution of free software. You can  use, 
12 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
13 #  license as circulated by CEA, CNRS and INRIA at the following URL 
14 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
15 #  or in the file LICENSE.txt.
16 #
17 #  As a counterpart to the access to the source code and  rights to copy,
18 #  modify and redistribute granted by the license, users are provided only
19 #  with a limited warranty  and the software's author,  the holder of the
20 #  economic rights,  and the successive licensors  have only  limited
21 #  liability. 
22 #
23 #  The fact that you are presently reading this means that you have had
24 #  knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------ */ 
26
27
28
29 #-----------------------------------------------------------------------------
30 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
31   INCLUDE(../cmake/UserBuildDoxygenDoc.cmake)
32   ADD_SUBDIRECTORY(UserDoxygen)
33 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
34 #-----------------------------------------------------------------------------
35
36 #-----------------------------------------------------------------------------
37 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
38   INCLUDE(../cmake/UserBuildLatexDoc.cmake)
39 ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
40   MACRO(USER_BUILD_LATEX_DOC TEX_FILE)
41   ENDMACRO(USER_BUILD_LATEX_DOC)
42 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
43 #-----------------------------------------------------------------------------
44
45
46 #-----------------------------------------------------------------------------
47 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
48   INCLUDE(../cmake/UserBuildHtmlDocFromLatex.cmake)
49 ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
50   MACRO(USER_BUILD_HTML_DOC_FROM_LATEX SOURCE)
51   ENDMACRO(USER_BUILD_HTML_DOC_FROM_LATEX)
52 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
53 #-----------------------------------------------------------------------------
54
55
56 #-----------------------------------------------------------------------------
57 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)  
58   ADD_SUBDIRECTORY(UserDocumentation)  
59 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
60 #-----------------------------------------------------------------------------
61 # Web site 
62 IF(BUILD_${PROJECT_NAME}_DOC)
63   # Configure main page index.html for build tree
64   CONFIGURE_FILE(
65     index.html.in
66     ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html
67     @ONLY
68     )
69   # Install it 
70   INSTALL( 
71     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html 
72     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
73     ) 
74   # Configure main page index-no-frame.html for build tree
75    CONFIGURE_FILE(
76     index-no-frame.html.in
77     ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html
78     @ONLY
79     )
80   # Install it 
81   INSTALL( 
82     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html 
83     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
84     ) 
85   # Configure help_contents.html for build tree
86    CONFIGURE_FILE(
87     help_contents.html.in
88     ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html
89     @ONLY
90     )
91   # Install it 
92   INSTALL( 
93     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html
94     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
95     ) 
96
97   # Recurse it bbtkWebSite dir
98   ADD_SUBDIRECTORY(template_WebSite)
99
100
101
102 ENDIF(BUILD_${PROJECT_NAME}_DOC)
103 #-----------------------------------------------------------------------------
104