build: versioning

versioning via git tags, commits after tags are displayed in the versionnumber
This commit is contained in:
Andreas Stallinger
2015-08-18 11:32:22 +02:00
parent 30c941fcf8
commit d8489c0b04
5 changed files with 90 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
# # build type needs to be in added as definition because of visual studio
message(STATUS "setting up the buildtype for versioning")
if(MSVC)
add_definitions(-DBUILD_TYPE="${ConfigurationName}")
else(MSVC)
add_definitions(-DBUILD_TYPE="${CMAKE_BUILD_TYPE}")
endif(MSVC)