summaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2020-12-10 23:57:27 +0100
committerglx22 <glx22@users.noreply.github.com>2020-12-12 15:48:04 +0100
commit6fae0b83d9f0ddc28d6f1cadf3c8aef126004429 (patch)
treeb2d0ee8b9a9a144048f00d0e2285922ef542e1aa /cmake/scripts
parent7f5afbfdf5ac288da188276430c30b3ed0af99f8 (diff)
downloadopenttd-6fae0b83d9f0ddc28d6f1cadf3c8aef126004429.tar.xz
Add: [CMake] targets to generate documentation
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/FindVersion.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/scripts/FindVersion.cmake b/cmake/scripts/FindVersion.cmake
index bb754fc5b..c920e6b8c 100644
--- a/cmake/scripts/FindVersion.cmake
+++ b/cmake/scripts/FindVersion.cmake
@@ -137,4 +137,16 @@ else()
message(STATUS "Generating CPackProperties.cmake")
configure_file("${CMAKE_SOURCE_DIR}/CPackProperties.cmake.in"
"${CPACK_BINARY_DIR}/CPackProperties.cmake" @ONLY)
+
+ message(STATUS "Generating Doxyfile")
+ configure_file("${CMAKE_SOURCE_DIR}/Doxyfile.in"
+ "${CPACK_BINARY_DIR}/Doxyfile")
+
+ message(STATUS "Generating Doxyfile_AI")
+ configure_file("${CMAKE_SOURCE_DIR}/src/script/api/Doxyfile_AI.in"
+ "${CPACK_BINARY_DIR}/Doxyfile_AI")
+
+ message(STATUS "Generating Doxyfile_GS")
+ configure_file("${CMAKE_SOURCE_DIR}/src/script/api/Doxyfile_GS.in"
+ "${CPACK_BINARY_DIR}/Doxyfile_GS")
endif()