mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -04:00
Move cmake scripts/modules to separate directory, adding Products will add new more scripts so first clean up, then changes.
15 lines
448 B
CMake
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}")
|