diff options
author | albert-github <albert.tests@gmail.com> | 2020-08-16 11:14:23 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-08-16 11:14:23 (GMT) |
commit | f7bd440af03ef881d1b4b8ec891cebf9e9728eed (patch) | |
tree | 72a533cfcbb8f7d7644dd98048e349322fcda09a /doc/CMakeLists.txt | |
parent | 9d7090da21fd190b7396624b42814eb66310271c (diff) | |
download | Doxygen-f7bd440af03ef881d1b4b8ec891cebf9e9728eed.zip Doxygen-f7bd440af03ef881d1b4b8ec891cebf9e9728eed.tar.gz Doxygen-f7bd440af03ef881d1b4b8ec891cebf9e9728eed.tar.bz2 |
Building documentation after changing language files
- make `GLOB` for language files consistent with `GLOB` usage in e.g. `src`
- make building of `language.doc ` depending on the language files as well
- don't copy translator and other input files and handle this also in translator.py
- update documentation
(Found after Swedish language was updated and tried to build documentation on a non new directory)
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 0a35c27..a094c57 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -93,17 +93,18 @@ if (build_doc_chm) Doxyfile_chm ) endif () -file(GLOB LANG_FILES "${TOP}/src/translator_??.h") + +if (${CMAKE_VERSION} VERSION_EQUAL "3.11.0" OR ${CMAKE_VERSION} VERSION_GREATER "3.11.0") + file(GLOB LANG_FILES CONFIGURE_DEPENDS "${TOP}/src//translator_??.h") +else() + file(GLOB LANG_FILES "${TOP}/src//translator_??.h") +endif() + file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man ${PROJECT_BINARY_DIR}/src ${PROJECT_BINARY_DIR}/doc) -file(COPY ${TOP}/VERSION DESTINATION ${PROJECT_BINARY_DIR}/) -file(COPY ${TOP}/src/translator.h DESTINATION ${PROJECT_BINARY_DIR}/src/) -file(COPY ${TOP}/src/translator_adapter.h DESTINATION ${PROJECT_BINARY_DIR}/src/) -file(COPY ${LANG_FILES} DESTINATION ${PROJECT_BINARY_DIR}/src/) - foreach (f ${DOC_FILES}) add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/doc/${f} COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/doc/${f} ${PROJECT_BINARY_DIR}/doc/ @@ -132,7 +133,7 @@ configure_file(${CMAKE_SOURCE_DIR}/doc/doxyindexer.1 ${PROJECT_BINARY_DIR}/ # doc/language.doc (see tag Doxyfile:INPUT) add_custom_command( COMMAND ${PYTHON_EXECUTABLE} translator.py ${CMAKE_SOURCE_DIR} - DEPENDS ${PROJECT_BINARY_DIR}/doc/maintainers.txt ${PROJECT_BINARY_DIR}/doc/language.tpl ${PROJECT_BINARY_DIR}/doc/translator.py + DEPENDS ${CMAKE_SOURCE_DIR}/doc/maintainers.txt ${CMAKE_SOURCE_DIR}/doc/language.tpl ${PROJECT_BINARY_DIR}/doc/translator.py ${LANG_FILES} OUTPUT language.doc WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/doc ) |