summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-06-18 13:15:52 -0400
committerAllen Winter <allen.winter@kdab.com>2022-06-18 13:15:52 -0400
commit5cc480508686b3d823ea0d3e2b107c7a9333bbe1 (patch)
tree486d2ba105d11c53a99bc7b303e84300e1531aa9
parente226bd66f75675edc928b92b0a14273b1c986c5b (diff)
downloadlibical-git-5cc480508686b3d823ea0d3e2b107c7a9333bbe1.tar.gz
doc/CMakeLists.txt - add INSTALL.txt, libicalvcal/README.txt
copy INSTALL.txt and libicalvcal/README.txt to the html dir. fixes links from top-level README.md
-rw-r--r--doc/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 97d38815..880fe759 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -50,9 +50,15 @@ if(DOXYGEN_FOUND)
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
)
+ set(DOXYGEN_OUTPUT_DIR ${CMAKE_BINARY_DIR}/apidocs/html)
add_custom_command(
- OUTPUT ${CMAKE_BINARY_DIR}/apidocs/html/index.html
+ OUTPUT ${DOXYGEN_OUTPUT_DIR}/index.html
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+ #copy some files by-hand that are referred to by the markdown README
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/Install.txt ${DOXYGEN_OUTPUT_DIR}
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${DOXYGEN_OUTPUT_DIR}/src/libicalvcal
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
+ ${CMAKE_SOURCE_DIR}/src/libicalvcal/README.txt ${DOXYGEN_OUTPUT_DIR}/src/libicalvcal
DEPENDS ${_all_hdrs} ${_dox_deps} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Run Doxygen"