summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-04-07 13:10:53 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-04-07 13:10:53 (GMT)
commitfa9dda01e6c013c7fe9be99b21d8bbf3c95c0482 (patch)
tree33fb7fab952dd602aa91ba29525e749e146a3596 /addon/doxywizard
parent16d025c8a08b485f5d43ade0986d716bd6aa06f8 (diff)
downloadDoxygen-fa9dda01e6c013c7fe9be99b21d8bbf3c95c0482.zip
Doxygen-fa9dda01e6c013c7fe9be99b21d8bbf3c95c0482.tar.gz
Doxygen-fa9dda01e6c013c7fe9be99b21d8bbf3c95c0482.tar.bz2
Show git version information
Show the git version on designated places (currently version, help and Doxyfile difference). The implementation is based on the git_watcher.cmake (https://github.com/andrew-hardin/cmake-git-version-tracking). The information is useful to see which. master, version of doxygen is used for a build on systems where a lot of builds are make (Fossies.org) or very regular builds are made (CGAL) Furthermore the tracking of the VERSION file was not done (when changed the version.cpp was not updated), this is corrected as well.
Diffstat (limited to 'addon/doxywizard')
-rw-r--r--addon/doxywizard/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt
index a89864d..c61c737 100644
--- a/addon/doxywizard/CMakeLists.txt
+++ b/addon/doxywizard/CMakeLists.txt
@@ -57,8 +57,10 @@ CONTENT "#ifndef SETTINGS_H
set_source_files_properties(${GENERATED_SRC_WIZARD}/settings.h PROPERTIES GENERATED 1)
# generate version.cpp
-file(GENERATE OUTPUT ${GENERATED_SRC_WIZARD}/version.cpp
- CONTENT "char versionString[]=\"${VERSION}\";"
+add_custom_command(
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/version.py ${VERSION} > ${GENERATED_SRC_WIZARD}/version.cpp
+ DEPENDS ${CMAKE_SOURCE_DIR}/VERSION ${CMAKE_SOURCE_DIR}/src/version.py
+ OUTPUT ${GENERATED_SRC_WIZARD}/version.cpp
)
set_source_files_properties(${GENERATED_SRC_WIZARD}/version.cpp PROPERTIES GENERATED 1)