forked from Mudlet/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CPack to make a Windows' installer with make package
- Loading branch information
Bruno Bigras
committed
Feb 14, 2009
1 parent
3abc143
commit 9ad6981
Showing
4 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
SET(PACKAGE_NAME "Mudlet") | ||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../COPYING") | ||
SET(CPACK_PACKAGE_EXECUTABLES "mudlet" "Mudlet") | ||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Mudlet") | ||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Mudlet") | ||
#SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/icons\\\\mudlet.bmp" ) | ||
#SET(CPACK_CREATE_DESKTOP_LINKS "mudlet") | ||
SET(CPACK_PACKAGE_VENDOR "Mudlet") | ||
SET(CPACK_PACKAGE_VERSION_MAJOR "0") | ||
SET(CPACK_PACKAGE_VERSION_MINOR "0") | ||
SET(CPACK_PACKAGE_VERSION_PATCH "1") | ||
|
||
INSTALL(FILES LuaGlobal.lua DESTINATION bin) | ||
INSTALL(FILES mudlet_documentation.html DESTINATION bin) | ||
|
||
IF(WIN32 AND NOT UNIX) | ||
FIND_PACKAGE(MinGW REQUIRED) | ||
SET(CPACK_NSIS_INSTALLED_ICON_NAME "mudlet.exe") | ||
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} Mudlet") | ||
SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.mudlet.org") | ||
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.mudlet.org") | ||
SET(CPACK_NSIS_CONTACT "bruno@mudlet.org") | ||
|
||
INSTALL(PROGRAMS mudlet.exe DESTINATION bin) | ||
INSTALL(FILES ${QT_LIBRARY_DIR}/qscintilla2.dll DESTINATION bin) | ||
INSTALL(FILES ${QT_BINARY_DIR}/QtCore4.dll DESTINATION bin) | ||
INSTALL(FILES ${QT_BINARY_DIR}/QtGui4.dll DESTINATION bin) | ||
INSTALL(FILES ${QT_BINARY_DIR}/QtNetwork4.dll DESTINATION bin) | ||
INSTALL(FILES ${QT_BINARY_DIR}/QtWebKit4.dll DESTINATION bin) | ||
INSTALL(FILES ${LUA_INCLUDE_DIR}/lua51.dll DESTINATION bin) | ||
INSTALL(FILES ${CMAKE_MINGW_DLL} DESTINATION bin) | ||
ELSE(WIN32 AND NOT UNIX) | ||
SET(CPACK_STRIP_FILES "mudlet") | ||
SET(CPACK_SOURCE_STRIP_FILES "") | ||
ENDIF(WIN32 AND NOT UNIX) | ||
|
||
INCLUDE(CPack) | ||
INCLUDE(InstallRequiredSystemLibraries) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FIND_FILE(CMAKE_MINGW_DLL mingwm10.dll PATHS | ||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin" | ||
c:/MinGW/bin /MinGW/bin) | ||
|
||
MARK_AS_ADVANCED(CMAKE_MINGW_DLL) |