Added a function returning maintance version name

This commit is contained in:
Piotr Krysik 2017-08-25 21:55:41 +02:00
parent 0f510c00eb
commit dea057452f
4 changed files with 14 additions and 2 deletions

View File

@ -233,4 +233,4 @@ include(CPack)
# Print summary
########################################################################
message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}")
message(STATUS "Building for version: ${VERSION} / ${LIBVER} / ${BUILD_DATE}")
message(STATUS "Building for version: ${VERSION} / ${LIBVER}")

View File

@ -49,9 +49,14 @@ namespace gr {
GRGSM_API const std::string api_version();
/*!
* \brief returnjust the minor version defined by cmake
* \brief return just the minor version defined by cmake
*/
GRGSM_API const std::string minor_version();
/*!
* \brief return just the maint version defined by cmake
*/
GRGSM_API const std::string maint_version();
} /* namespace gsm */
} /* namespace gr */

View File

@ -59,5 +59,11 @@ namespace gr {
{
return "@MINOR_VERSION@";
}
const std::string
maint_version()
{
return "@MAINT_VERSION@";
}
} /* namespace gsm */
} /* namespace gr */

View File

@ -32,5 +32,6 @@ namespace gr {
const std::string major_version();
const std::string api_version();
const std::string minor_version();
const std::string maint_version();
} /* namespace gsm */
} /* namespace gr */