added version management

This commit is contained in:
Lendemor 2016-03-08 19:17:39 +01:00
parent 246744b72a
commit 69b1f47c1f
2 changed files with 9 additions and 0 deletions

3
SparrowConfig.h.in Normal file
View File

@ -0,0 +1,3 @@
// the configured options and settings for Tutorial
#define VERSION_MAJOR @VERSION_MAJOR@
#define VERSION_MINOR @VERSION_MINOR@

View File

@ -13,6 +13,12 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
configure_file (
"SparrowConfig.h.in"
"${PROJECT_BINARY_DIR}/Config.h"
)
#detect system and version
if(WIN32)
set(LIB_DEBUG_FOLDER "libDebug/win32")