"Fossies" - the Fresh Open Source Software Archive

Member "darktable-3.6.1/doc/CMakeLists.txt" (10 Sep 2021, 1775 Bytes) of package /linux/misc/darktable-3.6.1.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. See also the last Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 3.4.1.1_vs_3.6.0.

    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_SOURCE_DIR}/tools/generate_darktablerc_doc.xsl ${DARKTABLE_DATADIR}/darktableconfig.dtd ${DARKTABLE_DATADIR}/darktableconfig.xml
   11     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html
   12     COMMAND ${Xsltproc_BIN} --nonet ${CMAKE_SOURCE_DIR}/tools/generate_darktablerc_doc.xsl ${DARKTABLE_DATADIR}/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_SOURCE_DIR}/tools/generate_darktablerc_doc.xsl ${DARKTABLE_DATADIR}/darktableconfig.dtd  ${DARKTABLE_DATADIR}/darktableconfig.xml
   18       OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/darktablerc.html
   19       COMMAND ${Saxon_BIN} ${DARKTABLE_DATADIR}/darktableconfig.xml ${CMAKE_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 # Build manual page
   34 add_subdirectory(man)