]> Creatis software - bbtk.git/blob - kernel/doc/bbtkWebSite/CMakeLists.txt
*** empty log message ***
[bbtk.git] / kernel / doc / bbtkWebSite / CMakeLists.txt
1 # Configure & install images 
2 BBTK_DOC_INSTALL_IMAGES(bbtkWebSite)
3
4 # Configure html pages for build tree and install 
5 FILE(GLOB HTML_PAGES "." "*.html")
6 FOREACH(page ${HTML_PAGES})  
7   GET_FILENAME_COMPONENT(filename "${page}" NAME)
8   CONFIGURE_FILE(
9     ${page}
10     ${BBTK_DOC_BUILD_PATH}/bbtkWebSite/${filename}
11     @ONLY
12     )
13   # Install
14   INSTALL(
15     FILES ${BBTK_DOC_BUILD_PATH}/bbtkWebSite/${filename}
16     DESTINATION ${BBTK_DOC_INSTALL_PATH}/bbtkWebSite
17     )
18 ENDFOREACH(page)
19
20
21 SET(INDEX_OUTPUT index-alpha.html)
22
23 IF (WIN32)
24
25   SET(USE_DOT TRUE)
26   MAKE_DLL_PATH()
27
28    ADD_CUSTOM_COMMAND(
29      OUTPUT ${INDEX_OUTPUT}
30          COMMAND 
31      set ${DLL_PATH} cd ${BBTK_BIN_PATH} && ./bbRegeneratePackageDoc -a &&  ./bbRegenerateBoxesLists
32
33     DEPENDS ${BBTK_PACKAGES_DEPS}
34           )
35
36 ELSE (WIN32)
37
38      MESSAGE(STATUS "PACKAGE_DEPS=${BBTK_PACKAGES_DEPS}")
39
40    SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
41             #   MESSAGE(LD_LIBRARY_PATH=${LD_LIBRARY_PATH})
42
43    ADD_CUSTOM_COMMAND(
44            OUTPUT ${INDEX_OUTPUT}
45             COMMAND 
46
47   cd ${BBTK_BIN_PATH} && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ./bbRegeneratePackageDoc -a &&  ./bbRegenerateBoxesLists
48
49     DEPENDS ${BBTK_PACKAGES_DEPS}
50         )
51
52 ENDIF (WIN32)
53
54 ADD_CUSTOM_TARGET(bbdoc ALL
55          DEPENDS ${INDEX_OUTPUT}
56              )
57