generate versions.target with cmake

This commit is contained in:
Markus Pilman 2020-04-07 11:33:47 -07:00
parent b93d8e8b21
commit b616a6b3b6
3 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -94,3 +94,4 @@ flow/coveragetool/obj
.envrc
.DS_Store
temp/
/versions.target

View File

@ -83,6 +83,7 @@ message(STATUS "Current git version ${CURRENT_GIT_VERSION}")
set(FDB_PACKAGE_NAME "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
set(FDB_VERSION ${PROJECT_VERSION})
set(FDB_VERSION_PLAIN ${FDB_VERSION})
configure_file(${CMAKE_SOURCE_DIR}/versions.target.cmake ${CMAKE_SOURCE_DIR}/versions.target)
message(STATUS "FDB version is ${FDB_VERSION}")
message(STATUS "FDB package name is ${FDB_PACKAGE_NAME}")

8
versions.target.cmake Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version>${CMAKE_PROJECT_VERSION}</Version>
<PackageName>${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}</PackageName>
</PropertyGroup>
</Project>