Files
MuditaOS/cmake/modules/GenVersionHpp.cmake
Adam Dobrowolski d1d34e558b [CP-688] Changed cmake so that it would accept version as parameter
We are guessing verion in scripts, when we should take it as parameter
2021-10-05 17:36:34 +02:00

10 lines
355 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/include/product/version.hpp
)