Take version number from Cmake file. This way the number is only in one place

This commit is contained in:
Twan van Laarhoven
2020-04-25 23:36:00 +02:00
parent 190d9c8ffa
commit b5f18ebec7
4 changed files with 26 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2017 Twan van Laarhoven and Sean Hunt |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#pragma once
#define MSE_VERSION_MAJOR @magicseteditor_VERSION_MAJOR@
#define MSE_VERSION_MINOR @magicseteditor_VERSION_MINOR@
#define MSE_VERSION_PATCH @magicseteditor_VERSION_PATCH@
// version number for .rc file
#define MSE_VERSION_RESOURCE @magicseteditor_VERSION_MAJOR@,@magicseteditor_VERSION_MINOR@,@magicseteditor_VERSION_PATCH@,0
#define MSE_VERSION_STRING "@magicseteditor_VERSION_MAJOR@.@magicseteditor_VERSION_MINOR@.@magicseteditor_VERSION_PATCH@"