summaryrefslogtreecommitdiffstats
path: root/cmake/FindgenerateDS.cmake
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-02-03 20:07:12 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-02-03 20:07:12 (GMT)
commita53db9b77a2df94cb9a1eaf4f6c305a92f432a14 (patch)
tree4407e5969d3849fcc3a938fdf8fcee50eef8d493 /cmake/FindgenerateDS.cmake
parent095c5de5e4df192898f7f13e9b51524999615983 (diff)
downloadDoxygen-a53db9b77a2df94cb9a1eaf4f6c305a92f432a14.zip
Doxygen-a53db9b77a2df94cb9a1eaf4f6c305a92f432a14.tar.gz
Doxygen-a53db9b77a2df94cb9a1eaf4f6c305a92f432a14.tar.bz2
Detect generateDS and recreate index.py/compound.py automatically
Diffstat (limited to 'cmake/FindgenerateDS.cmake')
-rw-r--r--cmake/FindgenerateDS.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/FindgenerateDS.cmake b/cmake/FindgenerateDS.cmake
new file mode 100644
index 0000000..77011fc
--- /dev/null
+++ b/cmake/FindgenerateDS.cmake
@@ -0,0 +1,19 @@
+find_program(GENERATEDS_EXECUTABLE NAMES generateDS generateDS.py DOC "path to the generateDS executable")
+mark_as_advanced(GENERATEDS_EXECUTABLE)
+set(GENERATEDS_FOUND 0)
+if(GENERATEDS_EXECUTABLE)
+ execute_process(
+ COMMAND "${GENERATEDS_EXECUTABLE}" --version
+ OUTPUT_VARIABLE GENERATEDS_TEMP_VERSION
+ )
+ string(REGEX MATCH ".* ([0-9]+(\\.[0-9]+)+)" GENERATEDS_TEMP_VERSION_UNUSED "${GENERATEDS_TEMP_VERSION}")
+ if(CMAKE_MATCH_1)
+ set(GENERATEDS_FOUND 1)
+ set(GENERATEDS_VERSION ${CMAKE_MATCH_1})
+ endif()
+endif()
+if(GENERATEDS_FOUND)
+ message(STATUS "The generateDS executable: ${GENERATEDS_EXECUTABLE} (found version \"${GENERATEDS_VERSION}\")")
+else()
+ message(STATUS "The generateDS executable not found, using existing files")
+endif()