cmake_modules/CPackConfig.cmake
branch0.9.19
changeset 8791 6e3308fc2a1d
parent 8723 b08cc68a26a3
--- a/cmake_modules/CPackConfig.cmake	Sat Mar 23 18:43:24 2013 +0100
+++ b/cmake_modules/CPackConfig.cmake	Thu Apr 04 14:01:54 2013 +0400
@@ -23,9 +23,9 @@
     set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
     set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com")
     set(CPACK_NSIS_MODIFY_PATH OFF)
-    set(CPACK_NSIS_EXECUTABLES_DIRECTORY "${target_binary_install_dir}")
+    set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
     set(CPACK_NSIS_MUI_FINISHPAGE_RUN "hedgewars${CMAKE_EXECUTABLE_SUFFIX}")
-    set(CPACK_GENERATOR "ZIP;NSIS")
+    set(CPACK_NSIS_CREATE_ICONS "CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Hedgewars.lnk' '$INSTDIR\\\\hedgewars.exe'")
     set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "hedgewars")
 endif(WIN32 AND NOT UNIX)
 
@@ -96,4 +96,3 @@
 )
 
 include(CPack)
-