]> Creatis software - bbtkGEditor.git/blob - doc/CMakeLists.txt
df681b00fc44d1b5fd367d4fafa0f0a7cbcdf1a7
[bbtkGEditor.git] / 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 #
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 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
27   INCLUDE(../cmake/UserBuildDoxygenDoc.cmake)
28   ADD_SUBDIRECTORY(UserDoxygen)
29 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
30 #-----------------------------------------------------------------------------
31
32 #-----------------------------------------------------------------------------
33 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
34   INCLUDE(../cmake/UserBuildLatexDoc.cmake)
35 ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
36   MACRO(USER_BUILD_LATEX_DOC TEX_FILE)
37   ENDMACRO(USER_BUILD_LATEX_DOC)
38 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
39 #-----------------------------------------------------------------------------
40
41
42 #-----------------------------------------------------------------------------
43 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
44   INCLUDE(../cmake/UserBuildHtmlDocFromLatex.cmake)
45 ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
46   MACRO(USER_BUILD_HTML_DOC_FROM_LATEX SOURCE)
47   ENDMACRO(USER_BUILD_HTML_DOC_FROM_LATEX)
48 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
49 #-----------------------------------------------------------------------------
50
51
52 #-----------------------------------------------------------------------------
53 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)  
54   ADD_SUBDIRECTORY(UserDocumentation)  
55 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
56 #-----------------------------------------------------------------------------
57 # Web site 
58 IF(BUILD_${PROJECT_NAME}_DOC)
59   # Configure main page index.html for build tree
60   CONFIGURE_FILE(
61     index.html.in
62     ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html
63     @ONLY
64     )
65   # Install it 
66   INSTALL( 
67     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html 
68     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
69     ) 
70   # Configure main page index-no-frame.html for build tree
71    CONFIGURE_FILE(
72     index-no-frame.html.in
73     ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html
74     @ONLY
75     )
76   # Install it 
77   INSTALL( 
78     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html 
79     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
80     ) 
81   # Configure help_contents.html for build tree
82    CONFIGURE_FILE(
83     help_contents.html.in
84     ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html
85     @ONLY
86     )
87   # Install it 
88   INSTALL( 
89     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html
90     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
91     ) 
92
93   # Recurse it bbtkWebSite dir
94   ADD_SUBDIRECTORY(template_WebSite)
95
96
97
98 ENDIF(BUILD_${PROJECT_NAME}_DOC)
99 #-----------------------------------------------------------------------------
100