core: make version.h appear in generated doc

This commit is contained in:
Hugues Delorme 2017-04-06 15:03:32 +02:00
parent be1ced46ed
commit ed230f6945
2 changed files with 22 additions and 2 deletions

View File

@ -128,7 +128,8 @@ FULL_PATH_NAMES = YES
# If left blank the directory from which doxygen is run is used as the
# path to strip.
STRIP_FROM_PATH = @CMAKE_CURRENT_SOURCE_DIR@/../src
STRIP_FROM_PATH = @CMAKE_CURRENT_SOURCE_DIR@/../src \
@CMAKE_CURRENT_BINARY_DIR@/../src
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
# the path mentioned in the documentation of a class, which tells
@ -642,7 +643,8 @@ WARN_LOGFILE =
# with spaces.
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/../doc/mainpage.dox \
@CMAKE_CURRENT_SOURCE_DIR@/../src
@CMAKE_CURRENT_SOURCE_DIR@/../src \
@CMAKE_CURRENT_BINARY_DIR@/../src/gmio_core/version.h
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

View File

@ -29,11 +29,29 @@
/* Generated by CMake */
/*! \file version.h
* Declaration of macros specifying gmio's version
*
* \addtogroup gmio_core
* @{
*/
#pragma once
/*! Expands to gmio's major version number */
#define GMIO_VERSION_MAJOR @GMIO_VERSION_MAJOR@
/*! Expands to gmio's minor version number */
#define GMIO_VERSION_MINOR @GMIO_VERSION_MINOR@
/*! Expands to gmio's patch version number */
#define GMIO_VERSION_PATCH @GMIO_VERSION_PATCH@
/*! Expands to a string that specifies gmio's version number */
#define GMIO_VERSION_STR "@GMIO_VERSION@"
/*! Expands to an hexadecimal value of the form \c 0xMMNNPP (MM=major, NN=minor,
* PP=patch) that specifies gmio's version number */
#define GMIO_VERSION 0x0@GMIO_VERSION_MAJOR@0@GMIO_VERSION_MINOR@0@GMIO_VERSION_PATCH@
/*! @} */