summaryrefslogtreecommitdiffhomepage
path: root/Starshatter
diff options
context:
space:
mode:
Diffstat (limited to 'Starshatter')
-rw-r--r--Starshatter/CMakeLists.txt4
-rw-r--r--Starshatter/Starshatter.rc.conf4
2 files changed, 3 insertions, 5 deletions
diff --git a/Starshatter/CMakeLists.txt b/Starshatter/CMakeLists.txt
index 913685f..e73a639 100644
--- a/Starshatter/CMakeLists.txt
+++ b/Starshatter/CMakeLists.txt
@@ -1,5 +1,4 @@
project(Starshatter)
-include(GitToResource)
add_executable(
Starshatter WIN32
Main.cpp
@@ -12,8 +11,7 @@ target_link_libraries(
Starshatter
PRIVATE StarsEx
)
-git_to_resource(RC_VERSION ${STARSHATTER_VERSION})
-configure_file(Starshatter.rc.conf ${CMAKE_CURRENT_BINARY_DIR}/Starshatter.rc @ONLY)
+add_version_file(Starshatter.rc Starshatter.rc.conf)
target_sources(
Starshatter
PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/Starshatter.rc
diff --git a/Starshatter/Starshatter.rc.conf b/Starshatter/Starshatter.rc.conf
index 123e9de..7febfc6 100644
--- a/Starshatter/Starshatter.rc.conf
+++ b/Starshatter/Starshatter.rc.conf
@@ -5,8 +5,8 @@
Stars ICON DISCARDABLE "Stars.ico"
VS_VERSION_INFO VERSIONINFO
- FILEVERSION @RC_VERSION@
- PRODUCTVERSION @RC_VERSION@
+ FILEVERSION @STARSHATTER_RC_VERSION@
+ PRODUCTVERSION @STARSHATTER_RC_VERSION@
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L