Files
MuditaOS/cmake/modules/GenVersionHpp.cmake
Radoslaw Wicik b7622bf149 [EGD-5812] Add cmake support for Products
Move cmake scripts/modules to separate directory, adding Products will
add new more scripts so first clean up, then changes.
2021-02-22 14:13:21 +01:00

15 lines
448 B
CMake

# This script generates the source/version.hpp containing project version
# information. It is meant to be run at build time by running CMake as a target.
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/cmake/modules")
include(Version)
configure_file(
${SRC_DIR}/source/version.hpp.template
${CMAKE_BINARY_DIR}/source/version.hpp
)
message("GIT_REV: ${GIT_REV}")
message("GIT_TAG: ${GIT_TAG}")
message("Version: ${CMAKE_PROJECT_VERSION}")