diff --git a/cmake/cable/buildinfo/buildinfo.cmake b/cmake/cable/buildinfo/buildinfo.cmake index adfab37..cfed170 100644 --- a/cmake/cable/buildinfo/buildinfo.cmake +++ b/cmake/cable/buildinfo/buildinfo.cmake @@ -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) diff --git a/cmake/cable/buildinfo/buildinfo.json.in b/cmake/cable/buildinfo/buildinfo.json.in new file mode 100644 index 0000000..107d9ab --- /dev/null +++ b/cmake/cable/buildinfo/buildinfo.json.in @@ -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@" +}