From c4b8167a69c46fe89a3c792f97adab7d2f9fb40c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 28 Mar 2024 07:36:52 -0700 Subject: 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. --- src/winver.h.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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} -- cgit v1.2.3-70-g09d2