]> Creatis software - gdcm.git/blob - Doc/CMakeLists.txt
* FIX : wrapping python for TagHeaderEntryHT
[gdcm.git] / Doc / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # Build the documentation
3
4 SET(HTML_DIR
5   ${GDCM_DATA_DIR}/html
6 )
7
8 SET(TARGET_DIR
9   ${HTML_DIR}/${DOC_MODULE}
10 )
11
12 #EXTRA_DIST = \
13 #  DoxyfileDeveloppers  \
14 #  DoxyfileUsers        \
15 #  DoxyDevelInstal.txt  \
16 #  DoxyIntroduction.txt \
17 #  DoxyPython.txt       \
18 #  DoxyInstallation.txt \
19 #  DoxyMainPage.txt
20
21 IF(GDCM_DOXYGEN)
22
23   # http://www.cmake.org/pipermail/cmake/2003-April/003673.html
24   # Too bad CMake doesn't support multiline ""
25   SET(GDCM_DOXYGEN_INPUT_COMMON
26     "${GDCM_SOURCE_DIR}/src   ${GDCM_SOURCE_DIR}/Doc/DoxyPython.txt   ${GDCM_SOURCE_DIR}/Doc/DoxyMainPage.txt  ${GDCM_SOURCE_DIR}/Doc/DoxyInstallation.txt  ${GDCM_SOURCE_DIR}/Doc/DoxyIntroduction.txt"
27   )
28   SET(GDCM_DOXYGEN_EXCLUDE_COMMON
29   )
30
31   #Should rewrote this thing with FOREACH:
32   #-----------------------------------------------------------------------------
33   # Build the documentation for developpers
34
35   SET(GDCM_HTML_OUTPUT
36     html.developper
37   )
38   SET(GDCM_DOXYGEN_INPUT
39     "${GDCM_DOXYGEN_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyDevelInstal.txt"
40   )
41   SET(GDCM_DOXYGEN_EXCLUDE
42     "${GDCM_DOXYGEN_EXCLUDE_COMMON}  ${GDCM_SOURCE_DIR@/src/iddcmjpeg.h     ${GDCM_SOURCE_DIR@/src/src/gdcmJpeg.cxx"
43   )
44   CONFIGURE_FILE(
45       ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in
46       ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers
47       IMMEDIATE
48   )
49
50   ADD_CUSTOM_TARGET(doc-developer
51    ALL
52    ${DOXYGEN}
53    ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers)
54
55   #-----------------------------------------------------------------------------
56   # Build the documentation for user
57
58   SET(GDCM_HTML_OUTPUT
59     html.user
60   )
61   SET(GDCM_DOXYGEN_INPUT
62     "${GDCM_DOXYGEN_INPUT_COMMON}"
63   )
64   SET(GDCM_DOXYGEN_EXCLUDE
65     "${GDCM_DOXYGEN_EXCLUDE_COMMON}"
66   )
67   CONFIGURE_FILE(
68       ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in
69       ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers
70       IMMEDIATE
71   )
72
73   ADD_CUSTOM_TARGET(doc-user
74    ALL
75    ${DOXYGEN}
76    ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers)
77
78
79   INSTALL_FILES(${HTML_DIR} "\\.css$")
80   INSTALL_FILES(${HTML_DIR} "\\.png$")
81   INSTALL_FILES(${HTML_DIR} "\\.html$")
82   #INSTALL_FILES(${HTML_DIR} "\\.pl$")
83   #INSTALL_FILES(${HTML_DIR} "\\.stop$")
84 ENDIF(GDCM_DOXYGEN)
85
86 #-----------------------------------------------------------------------------
87 # m4 that hasn't been translated
88
89 #dist-hook:
90 #       rm -rf $(distdir)/html.developper
91
92 #.PHONY : html.developper latex man