aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-01-22 19:48:30 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-01-22 20:18:46 +0100
commitf5079833eb968216008942dcc885842c13f15dbc (patch)
tree091bebc2ac327638e19e84db19d2f72bc7937070 /CMakeLists.txt
parent37e2c5f01f2ee00af3a10311b69f66f8653b42db (diff)
downloadlogdiag-f5079833eb968216008942dcc885842c13f15dbc.tar.gz
logdiag-f5079833eb968216008942dcc885842c13f15dbc.tar.xz
logdiag-f5079833eb968216008942dcc885842c13f15dbc.zip
Set up the project for NSIS.
Make lines in the LICENSE file shorter, so they don't wrap there.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e1675c..d10dc38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -263,11 +263,23 @@ set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set (CPACK_PACKAGE_VERSION_MAJOR ${project_VERSION_MAJOR})
set (CPACK_PACKAGE_VERSION_MINOR ${project_VERSION_MINOR})
set (CPACK_PACKAGE_VERSION_PATCH ${project_VERSION_PATCH})
-set (CPACK_GENERATOR "TGZ;ZIP")
+
+if (WIN32)
+ set (CPACK_GENERATOR "NSIS;ZIP")
+else (WIN32)
+ set (CPACK_GENERATOR "TGZ;ZIP")
+endif (WIN32)
set (CPACK_PACKAGE_FILE_NAME
"${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
set (CPACK_PACKAGE_INSTALL_DIRECTORY
- "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
+ "${PROJECT_NAME} ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
+set (CPACK_NSIS_INSTALLED_ICON_NAME "logdiag.exe")
+set (CPACK_NSIS_CREATE_ICONS_EXTRA
+ "CreateShortCut '\$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\logdiag.lnk' '\$INSTDIR\\\\logdiag.exe'")
+set (CPACK_NSIS_DELETE_ICONS_EXTRA
+ "!insertmacro MUI_STARTMENU_GETFOLDER Application $SM_FOLDER
+ Delete '\$SMPROGRAMS\\\\$SM_FOLDER\\\\logdiag.lnk'")
+
set (CPACK_SOURCE_GENERATOR "TGZ;ZIP")
set (CPACK_SOURCE_IGNORE_FILES "/build;/.svn;/.git;/win32-depends")
set (CPACK_SOURCE_PACKAGE_FILE_NAME