From: Michael Wallner Date: Mon, 14 Dec 2020 14:34:10 +0000 (-0800) Subject: cpack: NSIS X-Git-Tag: 1.1.0-beta1~60 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8ba89beac798e2b3d1f96b46471e3b58d8c61d1d;p=awesomized%2Flibmemcached cpack: NSIS --- diff --git a/CPack.txt b/CPack.txt index 97221b62..386bb131 100644 --- 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 index 00000000..1a8733e5 --- /dev/null +++ b/CPackNSIS.txt @@ -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}")