"Fossies" - the Fresh Open Source Software Archive

Member "darktable-2.6.3/doc/CMakeLists.txt" (20 Oct 2019, 2422 Bytes) of package /linux/misc/darktable-2.6.3.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # Install Doc files
    3 #
    4 set(DOC_FILES README.md ../AUTHORS TRANSLATORS.md ../LICENSE)
    5 install(FILES ${DOC_FILES} DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT DTDocuments)
    6 
    7 # create config docs
    8 if(NOT ${Xsltproc_BIN} STREQUAL "Xsltproc_BIN-NOTFOUND")
    9   add_custom_command(
   10     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../tools/generate_darktablerc_doc.xsl ${CMAKE_CURRENT_BINARY_DIR}/../data/darktableconfig.dtd ${CMAKE_CURRENT_BINARY_DIR}/../data/darktableconfig.xml
   11     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html
   12     COMMAND ${Xsltproc_BIN} --nonet ${CMAKE_CURRENT_SOURCE_DIR}/../tools/generate_darktablerc_doc.xsl ${CMAKE_CURRENT_BINARY_DIR}/../data/darktableconfig.xml > ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html
   13   )
   14 else(NOT ${Xsltproc_BIN} STREQUAL "Xsltproc_BIN-NOTFOUND")
   15   if(NOT ${Saxon_BIN} STREQUAL "Saxon_BIN-NOTFOUND")
   16     add_custom_command(
   17       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../tools/generate_darktablerc_doc.xsl ${CMAKE_CURRENT_BINARY_DIR}/../data/darktableconfig.dtd ${CMAKE_CURRENT_BINARY_DIR}/../data/darktableconfig.xml
   18       OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html
   19       COMMAND ${Saxon_BIN} ${CMAKE_CURRENT_BINARY_DIR}/../data/darktableconfig.xml ${CMAKE_CURRENT_SOURCE_DIR}/../tools/generate_darktablerc_doc.xsl > ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html
   20     )
   21   else(NOT ${Saxon_BIN} STREQUAL "Saxon_BIN-NOTFOUND")
   22     message(WARNING "darktablerc.html not generated")
   23   endif(NOT ${Saxon_BIN} STREQUAL "Saxon_BIN-NOTFOUND")
   24 endif(NOT ${Xsltproc_BIN} STREQUAL "Xsltproc_BIN-NOTFOUND")
   25 
   26 add_custom_target(darktablerc.html_file ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html)
   27 if(USE_XMLLINT)
   28   add_dependencies(darktablerc.html_file validate_darktableconfig_xml)
   29 endif(USE_XMLLINT)
   30 
   31 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT DTDocuments)
   32 
   33 # we remove the usermanual from the release tarball as it adds an extra 77 MB which people don't need in general
   34 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/usermanual)
   35   add_subdirectory(usermanual)
   36 else(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/usermanual)
   37   message(WARNING "the sources of the usermanual are missing so you won't be able to generate it. if this is a release tarball then that's normal.\nplease grab them from github if you want to work on the manual.")
   38 endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/usermanual)
   39 
   40 # Build manual page
   41 add_subdirectory(man)