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 81a5546..3df77be 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/mingw32")