]> Creatis software - gdcm.git/blob - Doc/CMakeLists.txt
Fix mistyping
[gdcm.git] / Doc / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # Build the documentation
3
4 SET(HTML_DIR
5   ${GDCM_INSTALL_DATA_DIR}/html
6 )
7
8 SET(TARGET_DIR
9   ${HTML_DIR}/${DOC_MODULE}
10 )
11
12 #EXTRA_DIST = \
13 #  DoxyfileDeveloppers  \
14 #  DoxyfileUsers        \
15 #  DoxyPython.txt       \
16 #  DoxyMainPage.txt
17
18 IF(GDCM_DOCUMENTATION)
19
20   # http://www.cmake.org/pipermail/cmake/2003-April/003673.html
21   # Too bad CMake doesn't support multiline ""
22   SET(GDCM_DOCUMENTATION_INPUT_COMMON
23     "${GDCM_SOURCE_DIR}/src ${GDCM_SOURCE_DIR}/Doc/DoxyPython.txt ${GDCM_SOURCE_DIR}/Doc/DoxyVtkGdmReaderExamples.txt"
24   )
25   SET(GDCM_DOCUMENTATION_EXCLUDE_COMMON
26     "${GDCM_SOURCE_DIR}/src/gdcmJpeg.cxx ${GDCM_SOURCE_DIR}/src/jdatasrc.cxx ${GDCM_SOURCE_DIR}/src/jdatadst.cxx"
27   )
28   
29   IF(GDCM_VTK)
30      SET(GDCM_DOCUMENTATION_INPUT_COMMON
31          "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/vtk")
32   ENDIF(GDCM_VTK)
33
34   IF(DOT)
35      GET_FILENAME_COMPONENT(GDCM_DOCUMENTATION_DOT_PATH ${DOT} PATH)
36      SET(GDCM_DOCUMENTATION_HAVE_DOT "YES")
37   ELSE(DOT)
38      SET(GDCM_DOCUMENTATION_DOT_PATH "")
39      SET(GDCM_DOCUMENTATION_HAVE_DOT "NO")
40   ENDIF(DOT)
41
42   #Should rewrite this thing with FOREACH:
43   #-----------------------------------------------------------------------------
44   # Build the documentation for developpers
45
46   SET(GDCM_HTML_OUTPUT
47     html.developper
48   )
49   SET(GDCM_DOCUMENTATION_INPUT
50     "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyMainPage.txt"
51   )
52   SET(GDCM_DOCUMENTATION_EXCLUDE
53     "${GDCM_DOCUMENTATION_EXCLUDE_COMMON}"
54   )
55   CONFIGURE_FILE(
56       ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in
57       ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers
58       IMMEDIATE
59   )
60
61   ADD_CUSTOM_TARGET(doc-developer
62    ALL
63    ${DOXYGEN}
64    ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers)
65
66   #-----------------------------------------------------------------------------
67   # Build the documentation for user
68
69   SET(GDCM_HTML_OUTPUT
70     html.user
71   )
72   SET(GDCM_DOCUMENTATION_INPUT
73     "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyMainPageUser.txt"
74   )
75   SET(GDCM_DOCUMENTATION_EXCLUDE
76     "${GDCM_DOCUMENTATION_EXCLUDE_COMMON} ${GDCM_SOURCE_DIR}/src/gdcmTS.h ${GDCM_SOURCE_DIR}/src/gdcmTS.cxx"
77   )
78   CONFIGURE_FILE(
79       ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in
80       ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers
81       IMMEDIATE
82   )
83
84   ADD_CUSTOM_TARGET(doc-user
85    ALL
86    ${DOXYGEN}
87    ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers)
88
89
90   INSTALL_FILES(${HTML_DIR} "\\.css$")
91   INSTALL_FILES(${HTML_DIR} "\\.png$")
92   INSTALL_FILES(${HTML_DIR} "\\.html$")
93   #INSTALL_FILES(${HTML_DIR} "\\.pl$")
94   #INSTALL_FILES(${HTML_DIR} "\\.stop$")
95 ENDIF(GDCM_DOCUMENTATION)
96
97 #-----------------------------------------------------------------------------
98 # m4 that hasn't been translated
99
100 #dist-hook:
101 # rm -rf $(distdir)/html.developper
102
103 #.PHONY : html.developper latex man