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
+3 -1
View File
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13)
project(magicseteditor)
project(magicseteditor VERSION 2.0.2)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
@@ -32,6 +32,8 @@ list(FILTER sources EXCLUDE REGEX win32_cli_wrapper.cpp)
target_sources(magicseteditor PRIVATE ${sources})
target_precompile_headers(magicseteditor PRIVATE src/util/prec.hpp)
configure_file(src/config.hpp.in src/config.hpp)
# resource file
target_sources(magicseteditor PRIVATE resource/win32_res.rc)