From 69b1f47c1f2d971577c6119d8616d6f936274e9b Mon Sep 17 00:00:00 2001 From: Lendemor Date: Tue, 8 Mar 2016 19:17:39 +0100 Subject: [PATCH] added version management --- SparrowConfig.h.in | 3 +++ template.cmake | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 SparrowConfig.h.in diff --git a/SparrowConfig.h.in b/SparrowConfig.h.in new file mode 100644 index 0000000..458c83d --- /dev/null +++ b/SparrowConfig.h.in @@ -0,0 +1,3 @@ +// the configured options and settings for Tutorial +#define VERSION_MAJOR @VERSION_MAJOR@ +#define VERSION_MINOR @VERSION_MINOR@ diff --git a/template.cmake b/template.cmake index 46eb226..9a649ba 100644 --- a/template.cmake +++ b/template.cmake @@ -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")