X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Doc%2FCMakeLists.txt;h=a4fceaf76da4517d10bb8b900611e855a29a8e45;hb=3b48ae81d6c358b352e726fa283296c496f35437;hp=01241dd3cf746f7ed630a6815d3be6e023d2664e;hpb=eb46f178c8cd7efca6bc149bcd95c41a4a3704f2;p=gdcm.git diff --git a/Doc/CMakeLists.txt b/Doc/CMakeLists.txt index 01241dd3..a4fceaf7 100644 --- a/Doc/CMakeLists.txt +++ b/Doc/CMakeLists.txt @@ -18,58 +18,73 @@ SET(TARGET_DIR # DoxyInstallation.txt \ # DoxyMainPage.txt -#all-local: html.developper/index.html - IF(GDCM_DOXYGEN) -# ADD_CUSTOM_COMMAND( -# SOURCE ${GDCM_SOURCE_DIR}/Doc/DoxyfileDeveloppers -# COMMAND ${DOXYGEN} -# ARGS ${GDCM_SOURCE_DIR}/Doc/DoxyfileDeveloppers -# TARGET mathieu -# OUTPUT ${GDCM_BINARY_DIR}/gdcmPython/gdcm_wrap.cxx -#) - -# http://www.cmake.org/pipermail/cmake/2003-April/003673.html -CONFIGURE_FILE( - ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in - ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers -) + # http://www.cmake.org/pipermail/cmake/2003-April/003673.html + # Too bad CMake doesn't support multiline "" + SET(GDCM_DOXYGEN_INPUT_COMMON + "${GDCM_SOURCE_DIR}/src ${GDCM_SOURCE_DIR}/Doc/DoxyPython.txt ${GDCM_SOURCE_DIR}/Doc/DoxyInstallation.txt ${GDCM_SOURCE_DIR}/Doc/DoxyIntroduction.txt" + ) + SET(GDCM_DOXYGEN_EXCLUDE_COMMON + ) + + #Should rewrote this thing with FOREACH: + #----------------------------------------------------------------------------- + # Build the documentation for developpers - ADD_CUSTOM_TARGET(doc + SET(GDCM_HTML_OUTPUT + html.developper + ) + SET(GDCM_DOXYGEN_INPUT + "${GDCM_DOXYGEN_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyDevelInstal.txt ${GDCM_SOURCE_DIR}/Doc/DoxyMainPage.txt" + ) + SET(GDCM_DOXYGEN_EXCLUDE + "${GDCM_DOXYGEN_EXCLUDE_COMMON} ${GDCM_SOURCE_DIR@/src/iddcmjpeg.h ${GDCM_SOURCE_DIR@/src/src/gdcmJpeg.cxx" + ) + CONFIGURE_FILE( + ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in + ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers + IMMEDIATE + ) + + ADD_CUSTOM_TARGET(doc-developer ALL ${DOXYGEN} ${GDCM_BINARY_DIR}/Doc/DoxyfileDeveloppers) + #----------------------------------------------------------------------------- + # Build the documentation for user + + SET(GDCM_HTML_OUTPUT + html.user + ) + SET(GDCM_DOXYGEN_INPUT + "${GDCM_DOXYGEN_INPUT_COMMON} ${GDCM_SOURCE_DIR}/Doc/DoxyMainPageUser.txt" + ) + SET(GDCM_DOXYGEN_EXCLUDE + "${GDCM_DOXYGEN_EXCLUDE_COMMON}" + ) + CONFIGURE_FILE( + ${GDCM_SOURCE_DIR}/Doc/doxygen.config.in + ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers + IMMEDIATE + ) + + ADD_CUSTOM_TARGET(doc-user + ALL + ${DOXYGEN} + ${GDCM_BINARY_DIR}/Doc/DoxyfileUsers) + + INSTALL_FILES(${HTML_DIR} "\\.css$") - INSTALL_FILES(${HTML_DIR} "\\.gif$") + INSTALL_FILES(${HTML_DIR} "\\.png$") INSTALL_FILES(${HTML_DIR} "\\.html$") #INSTALL_FILES(${HTML_DIR} "\\.pl$") #INSTALL_FILES(${HTML_DIR} "\\.stop$") ENDIF(GDCM_DOXYGEN) -#if ENABLE_DOXYGEN -#html.developper/index.html: DoxyfileDeveloppers -# doxygen DoxyfileDeveloppers -#else -#html.developper/index.html: -#endif - -#clean-local: -# rm -f *~ *.bak -# rm -rf man latex html.developper rtf - -#install-data-local: html.developper -# $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) -# (installfiles=`echo html.developper/*`; \ -# if test "$$installfiles" = 'html.developper/*'; \ -# then echo '-- Nothing to install' ; \ -# else \ -# for i in $$installfiles; do \ -# echo '-- Installing '$$i ; \ -# $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \ -# done; \ -# fi) +#----------------------------------------------------------------------------- +# m4 that hasn't been translated #dist-hook: # rm -rf $(distdir)/html.developper