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