summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-28 07:36:52 -0700
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-08 16:28:44 +0200
commitc4b8167a69c46fe89a3c792f97adab7d2f9fb40c (patch)
treea5b2e6bd4811950f2cdf13a9a0115f028e1a5704 /src
parent12ac98a5375f38a190925ef59bc923318a37fd0f (diff)
downloadmana-c4b8167a69c46fe89a3c792f97adab7d2f9fb40c.tar.gz
mana-c4b8167a69c46fe89a3c792f97adab7d2f9fb40c.tar.bz2
mana-c4b8167a69c46fe89a3c792f97adab7d2f9fb40c.tar.xz
mana-c4b8167a69c46fe89a3c792f97adab7d2f9fb40c.zip
CMake: Allow using CPack to generate an NSIS installer
* Set the version, description and homepage URL using modern CMake style (minimum supported version increased to CMake 3.12). * Fixed the reference to the MUI_WELCOMEFINISHPAGE_BITMAP file, which needed "\\" instead of "/" to work for me in MSYS2, and with CPACK_VERBATIM_VARIABLES enabled (otherwise "\\\\" was needed). * Fixed the icon used for the uninstall entry by setting CPACK_NSIS_INSTALLED_ICON_NAME. * Fixed missing start menu entry by setting CPACK_PACKAGE_EXECUTABLES. * Fixed running Mana when finishing the install by setting CPACK_NSIS_EXECUTABLES_DIRECTORY. * Mark the NSIS installer as DPI-aware using CPACK_NSIS_MANIFEST_DPI_AWARE. * Enabled uninstall before install using CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL.
Diffstat (limited to 'src')
-rw-r--r--src/winver.h.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/winver.h.in b/src/winver.h.in
index fb0aac2c..8ce64032 100644
--- a/src/winver.h.in
+++ b/src/winver.h.in
@@ -1,6 +1,5 @@
/* VERSION DEFINITIONS */
-#define VER_MAJOR ${VER_MAJOR}
-#define VER_MINOR ${VER_MINOR}
-#define VER_RELEASE ${VER_RELEASE}
-#define VER_BUILD ${VER_BUILD}
-#define PACKAGE_VERSION "${VERSION}"
+#define VER_MAJOR ${PROJECT_VERSION_MAJOR}
+#define VER_MINOR ${PROJECT_VERSION_MINOR}
+#define VER_RELEASE ${PROJECT_VERSION_PATCH}
+#define VER_BUILD ${PROJECT_VERSION_TWEAK}