1 # packaging information
2 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "NeL MMORPG Framework - Snowballs Demo")
3 SET(CPACK_PACKAGE_VENDOR "NeL")
4 SET(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README)
5 SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING)
6 SET(CPACK_PACKAGE_VERSION_MAJOR "${SB_VERSION_MAJOR}")
7 SET(CPACK_PACKAGE_VERSION_MINOR "${SB_VERSION_MINOR}")
8 SET(CPACK_PACKAGE_VERSION_PATCH "${SB_VERSION_PATCH}")
9 SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};Snowballs;ALL;/")
10 SET(CPACK_PACKAGE_EXECUTABLES "snowballs-${SB_VERSION}" "snowballs")
12 # NSIS Specific Packing Setup
13 SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "Snowballs")
14 SET(CPACK_NSIS_MODIFY_PATH "ON")
15 SET(CPACK_NSIS_MUI_ICON ${CMAKE_SOURCE_DIR}/resources/nevraxpill.ico)
16 SET(CPACK_NSIS_MUI_UNIICON ${CMAKE_SOURCE_DIR}/resources/nevraxpill.ico)
17 SET(CPACK_PACKAGE_ICON ${CMAKE_SOURCE_DIR}/resources\\\\nel.bmp)
18 SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} Snowballs")
19 SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\dev.ryzom.com\\\\projects\\\\nel")
20 SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\dev.ryzom.com\\\\projects\\\\nel")
21 SET(CPACK_NSIS_CONTACT "matt.raykowski@gmail.com")
24 SET(CPACK_PACKAGE_FILE_NAME "snowballs-${SB_VERSION}")
25 SET(CPACK_SOURCE_PACKAGE_FILE_NAME "snowballs-${SB_VERSION}")
27 SET(CPACK_GENERATOR "NSIS")
28 SET(CPACK_SOURCE_GENERATOR "ZIP")
30 SET(CPACK_GENERATOR "TGZ")
31 SET(CPACK_SOURCE_GENERATOR "TGZ")
33 set(CPACK_SOURCE_IGNORE_FILES
36 "^${CMAKE_SOURCE_DIR}.*/CVS/"
37 "^${CMAKE_SOURCE_DIR}.*/\\\\.svn/"
38 "^${CMAKE_SOURCE_DIR}/debian/"
39 "^${CMAKE_SOURCE_DIR}/old/")
41 IF(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
42 # Install "Debug" specific stuff here.
43 SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE)
44 message(status "install debug libraries.")
46 # Install "Release" Specific stuff here.
47 SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE)
51 # Needed to find dependencies for nel_launcher_qt.
52 FIND_PACKAGE(Qt4 REQUIRED)
54 # Install Qt dependencies for the launcher.
55 INCLUDE(${QT_USE_FILE})
57 "${QT_LIBRARY_DIR}/QtGuid4.dll"
58 "${QT_LIBRARY_DIR}/QtXmld4.dll"
59 "${QT_LIBRARY_DIR}/QtCored4.dll"
62 # Install the Qt Launcher.
63 INSTALL(FILES ${NELNS_NEL_LAUNCHER_BIN} DESTINATION bin COMPONENT snowballsclient)
65 # Install the sound/video drivers
66 INSTALL(FILES ${NELDRVOPENGL_DLL} ${NELDRVDIRECT3D_DLL} DESTINATION bin COMPONENT snowballsclient)
71 ${NELNS_NAMING_SERVICE_BIN}
72 ${NELNS_NAMING_SERVICE_CFG}
73 ${NELNS_LOGIN_SERVICE_BIN}
74 ${NELNS_LOGIN_SERVICE_CFG}
75 ${NELNS_WELCOME_SERVICE_BIN}
76 ${NELNS_WELCOME_SERVICE_CFG}
81 INCLUDE(InstallRequiredSystemLibraries)
86 cpack_add_install_type(Full DISPLAY_NAME "Full Install")
87 cpack_add_component_group(Client
89 DESCRPTION "Snowballs Client")
90 cpack_add_component_group(Server
92 DESCRPTION "Snowballs Services")
93 cpack_add_component(snowballsclient
94 DISPLAY_NAME "Snowballs Client Runtime"
95 DESCRIPTION "Hello World Application"
98 cpack_add_component(Unspecified
99 DISPLAY_NAME "Application Runtime Libraries"
100 DESCRIPTION "Hello World Application Libraries"
103 cpack_add_component(snowballsdata
104 DISPLAY_NAME "Snowballs Application Data"
105 DESCRIPTION "Snowballs Application Data"
108 cpack_add_component(services
109 DISPLAY_NAME "Snowballs Services"
110 DESCRIPTION "Snowballs Services"