]> Creatis software - bbtkGEditor.git/blob - doc/CMakeLists.txt
Solved text message issue, when pointed a correct connection. bug 1371
[bbtkGEditor.git] / doc / CMakeLists.txt
1
2
3 #-----------------------------------------------------------------------------
4 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
5   INCLUDE(../cmake/UserBuildDoxygenDoc.cmake)
6   ADD_SUBDIRECTORY(UserDoxygen)
7 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN)
8 #-----------------------------------------------------------------------------
9
10 #-----------------------------------------------------------------------------
11 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
12   INCLUDE(../cmake/UserBuildLatexDoc.cmake)
13 ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
14   MACRO(USER_BUILD_LATEX_DOC TEX_FILE)
15   ENDMACRO(USER_BUILD_LATEX_DOC)
16 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF)
17 #-----------------------------------------------------------------------------
18
19
20 #-----------------------------------------------------------------------------
21 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
22   INCLUDE(../cmake/UserBuildHtmlDocFromLatex.cmake)
23 ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
24   MACRO(USER_BUILD_HTML_DOC_FROM_LATEX SOURCE)
25   ENDMACRO(USER_BUILD_HTML_DOC_FROM_LATEX)
26 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
27 #-----------------------------------------------------------------------------
28
29
30 #-----------------------------------------------------------------------------
31 IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)  
32   ADD_SUBDIRECTORY(UserDocumentation)  
33 ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML)
34 #-----------------------------------------------------------------------------
35 # Web site 
36 IF(BUILD_${PROJECT_NAME}_DOC)
37   # Configure main page index.html for build tree
38   CONFIGURE_FILE(
39     index.html.in
40     ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html
41     @ONLY
42     )
43   # Install it 
44   INSTALL( 
45     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html 
46     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
47     ) 
48   # Configure main page index-no-frame.html for build tree
49    CONFIGURE_FILE(
50     index-no-frame.html.in
51     ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html
52     @ONLY
53     )
54   # Install it 
55   INSTALL( 
56     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html 
57     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
58     ) 
59   # Configure help_contents.html for build tree
60    CONFIGURE_FILE(
61     help_contents.html.in
62     ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html
63     @ONLY
64     )
65   # Install it 
66   INSTALL( 
67     FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html
68     DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}
69     ) 
70
71   # Recurse it bbtkWebSite dir
72   ADD_SUBDIRECTORY(template_WebSite)
73
74
75
76 ENDIF(BUILD_${PROJECT_NAME}_DOC)
77 #-----------------------------------------------------------------------------
78