cpack: NSIS
authorMichael Wallner <mike@php.net>
Mon, 14 Dec 2020 14:34:10 +0000 (06:34 -0800)
committerMichael Wallner <mike@php.net>
Mon, 14 Dec 2020 14:34:10 +0000 (06:34 -0800)
CPack.txt
CPackNSIS.txt [new file with mode: 0644]

index 97221b621a8ee4c981e28d480394550f318b9f29..386bb131a6ece1ecde3141757c121075e8a5668b 100644 (file)
--- a/CPack.txt
+++ b/CPack.txt
@@ -21,7 +21,7 @@ set(CPACK_BINARY_TXZ 0)
 set(CPACK_BINARY_TZ 0)
 set(CPACK_BINARY_ZIP ${WIN32})
 set(CPACK_BINARY_NSIS ${WIN32})
-set(CPACK_BINARY_NUGET ${WIN32})
+set(CPACK_BINARY_NUGET 0)
 
 # source archive
 set(CPACK_SOURCE_TBZ2 0)
@@ -51,6 +51,7 @@ set(CPACK_PACKAGE_FILE_NAME
         "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
 
 set(CPACK_ARCHIVE_COMPONENT_INSTALL ${CPACK_COMPONENT_INSTALL})
+set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME lib)
 
 # dependencies
 if(HAVE_LIBSASL)
@@ -72,6 +73,10 @@ endif()
 if(APPLE)
 endif()
 
+if(WIN32)
+    cpack_include_if(NSIS)
+endif()
+
 # BSDs
 if(CMAKE_SYSTEM_NAME MATCHES BSD)
     cpack_include_if(BSD)
diff --git a/CPackNSIS.txt b/CPackNSIS.txt
new file mode 100644 (file)
index 0000000..1a8733e
--- /dev/null
@@ -0,0 +1,5 @@
+set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_PROJECT_NAME}\\\\${CMAKE_PROJECT_VERSION}")
+set(CPACK_NSIS_MODIFY_PATH ON)
+set(CPACK_NSIS_DISPLAY_NAME "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}")
+set(CPACK_NSIS_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
+set(CPACK_NSIS_HELP_LINK "${CMAKE_PROJECT_HOMEPAGE_URL}")