]> Creatis software - gdcm.git/blob - Doc/CMakeLists.txt
Fix English mistakes
[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 #  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"
27     "${GDCM_SOURCE_DIR}/src/jdatasrc.cxx"
28     "${GDCM_SOURCE_DIR}/src/jdatadst.cxx"
29   )
30   
31   IF(GDCM_VTK)
32      SET(GDCM_DOCUMENTATION_INPUT_COMMON
33          "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/vtk")
34   ENDIF(GDCM_VTK)
35
36   IF(DOT)
37      GET_FILENAME_COMPONENT(GDCM_DOCUMENTATION_DOT_PATH ${DOT} PATH)
38      SET(GDCM_DOCUMENTATION_HAVE_DOT "YES")
39   ELSE(DOT)
40      SET(GDCM_DOCUMENTATION_DOT_PATH "")
41      SET(GDCM_DOCUMENTATION_HAVE_DOT "NO")
42   ENDIF(DOT)
43
44   #Should rewrote this thing with FOREACH:
45   #-----------------------------------------------------------------------------
46   # Build the documentation for developpers
47
48   SET(GDCM_HTML_OUTPUT
49     html.developper
50   )
51   SET(GDCM_DOCUMENTATION_INPUT
52     "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyMainPage.txt"
53   )
54   SET(GDCM_DOCUMENTATION_EXCLUDE
55     "${GDCM_DOCUMENTATION_EXCLUDE_COMMON}"
56   )
57   CONFIGURE_FILE(
58       ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in
59       ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers
60       IMMEDIATE
61   )
62
63   ADD_CUSTOM_TARGET(doc-developer
64    ALL
65    ${DOXYGEN}
66    ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers)
67
68   #-----------------------------------------------------------------------------
69   # Build the documentation for user
70
71   SET(GDCM_HTML_OUTPUT
72     html.user
73   )
74   SET(GDCM_DOCUMENTATION_INPUT
75     "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyMainPageUser.txt"
76   )
77   SET(GDCM_DOCUMENTATION_EXCLUDE
78     "${GDCM_DOCUMENTATION_EXCLUDE_COMMON} ${GDCM_SOURCE_DIR}/src/gdcmTS.h ${GDCM_SOURCE_DIR}/src/gdcmTS.cxx"
79   )
80   CONFIGURE_FILE(
81       ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in
82       ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers
83       IMMEDIATE
84   )
85
86   ADD_CUSTOM_TARGET(doc-user
87    ALL
88    ${DOXYGEN}
89    ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers)
90
91
92   INSTALL_FILES(${HTML_DIR} "\\.css$")
93   INSTALL_FILES(${HTML_DIR} "\\.png$")
94   INSTALL_FILES(${HTML_DIR} "\\.html$")
95   #INSTALL_FILES(${HTML_DIR} "\\.pl$")
96   #INSTALL_FILES(${HTML_DIR} "\\.stop$")
97 ENDIF(GDCM_DOCUMENTATION)
98
99 #-----------------------------------------------------------------------------
100 # m4 that hasn't been translated
101
102 #dist-hook:
103 # rm -rf $(distdir)/html.developper
104
105 #.PHONY : html.developper latex man