~aleteoryx/muditaos

ref: 22fa17a6164f108f4a2e9441ac8490ab2fcb1733 muditaos/cmake/modules/GenVersionHpp.cmake -rw-r--r-- 448 bytes
22fa17a6 — breichel [EGD-5919] Fix logs from Service: Cellular, Fota 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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}")