buildinfo: Export buildinfo.json file

This commit is contained in:
Paweł Bylica 2018-08-07 16:24:24 +02:00
parent 98a683e05e
commit 04318d3f44
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with 11 additions and 0 deletions

View File

@ -70,5 +70,6 @@ message(
)
configure_file(${CMAKE_CURRENT_LIST_DIR}/buildinfo.c.in ${OUTPUT_DIR}/buildinfo.c)
configure_file(${CMAKE_CURRENT_LIST_DIR}/buildinfo.json.in ${OUTPUT_DIR}/buildinfo.json)
configure_file(${CMAKE_CURRENT_LIST_DIR}/buildinfo.sh.in ${OUTPUT_DIR}/buildinfo.sh)
configure_file(${CMAKE_CURRENT_LIST_DIR}/buildinfo.ps1.in ${OUTPUT_DIR}/buildinfo.ps1)

View File

@ -0,0 +1,10 @@
{
"name": "@PROJECT_NAME@",
"version": "@PROJECT_VERSION@",
"is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
"commit": "@GIT_COMMIT_HASH@",
"branch": "@GIT_BRANCH@",
"repo": "@GIT_ORIGIN_URL@",
"system_name": "@SYSTEM_NAME@",
"system_processor": "@SYSTEM_PROCESSOR@"
}