From 6fe9114b621b97c1f45e3a7db95374c4d99fb924 Mon Sep 17 00:00:00 2001 From: christian mueller Date: Tue, 21 Feb 2012 14:13:59 +0100 Subject: * add proper version information in doxygen --- CMakeLists.txt | 4 ++++ cmake/DoxyFile.in | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7702eb..10baaaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,10 @@ ENDIF(DAEMON_ERROR) message(STATUS "Build Version ${DAEMONVERSION}") +FILE(READ "cmake/DoxyFile.in" DOXYFILE) +STRING(REGEX REPLACE "(PROJECT_NUMBER = [0-9].[0-9].[0-9])" "PROJECT_NUMBER = ${DAEMONVERSION}" DOXYFILE ${DOXYFILE}) +FILE(WRITE "cmake/DoxyFile.in" ${DOXYFILE} ) + execute_process(COMMAND git log --pretty=short WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/CHANGELOG) diff --git a/cmake/DoxyFile.in b/cmake/DoxyFile.in index a885866..8c0df15 100644 --- a/cmake/DoxyFile.in +++ b/cmake/DoxyFile.in @@ -31,7 +31,7 @@ PROJECT_NAME = AudioManager # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = 0.1 +PROJECT_NUMBER = 0.9.30 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. @@ -232,7 +232,7 @@ EXTENSION_MAPPING = # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# definitions whose arguments contain STL classes (e.g. func(std::string) v.s. # func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. -- cgit v1.2.1