build: versioning
versioning via git tags, commits after tags are displayed in the versionnumber
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user