Change Encyclo button name and macros icon
[ryzomcore.git] / snowballs2 / CMakePackaging.txt
blob4e5ce380c52802c53674e5106c3a17b446d28ec2
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")
23 ## Source Packages
24 SET(CPACK_PACKAGE_FILE_NAME "snowballs-${SB_VERSION}")
25 SET(CPACK_SOURCE_PACKAGE_FILE_NAME "snowballs-${SB_VERSION}")
26 IF(WIN32)
27   SET(CPACK_GENERATOR "NSIS")
28   SET(CPACK_SOURCE_GENERATOR "ZIP")
29 ELSE()
30   SET(CPACK_GENERATOR "TGZ")
31   SET(CPACK_SOURCE_GENERATOR "TGZ")
32 ENDIF()
33 set(CPACK_SOURCE_IGNORE_FILES
34         "~$"
35         "\\\\.cvsignore$"
36         "^${CMAKE_SOURCE_DIR}.*/CVS/"
37         "^${CMAKE_SOURCE_DIR}.*/\\\\.svn/"
38         "^${CMAKE_SOURCE_DIR}/debian/"
39         "^${CMAKE_SOURCE_DIR}/old/")
40 IF(WIN32)
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.")
45   ELSE()
46     # Install "Release" Specific stuff here.
47     SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE)
48   ENDIF()
50   IF(BUILD_CLIENT)
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})
56     INSTALL(FILES
57         "${QT_LIBRARY_DIR}/QtGuid4.dll"
58         "${QT_LIBRARY_DIR}/QtXmld4.dll"
59         "${QT_LIBRARY_DIR}/QtCored4.dll"
60         DESTINATION bin)
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)
67   ENDIF()
69   IF(BUILD_SERVER)
70     INSTALL(FILES
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}
77                 DESTINATION sbin
78                 COMPONENT services)
79   ENDIF()
81   INCLUDE(InstallRequiredSystemLibraries)
82 ENDIF()
84 INCLUDE(CPack)
86 cpack_add_install_type(Full DISPLAY_NAME "Full Install")
87 cpack_add_component_group(Client
88   EXPANDED
89   DESCRPTION "Snowballs Client")
90 cpack_add_component_group(Server
91   EXPANDED
92   DESCRPTION "Snowballs Services")
93 cpack_add_component(snowballsclient
94   DISPLAY_NAME "Snowballs Client Runtime"
95   DESCRIPTION "Hello World Application"
96   GROUP Application
97   INSTALL_TYPES Full)
98 cpack_add_component(Unspecified
99   DISPLAY_NAME "Application Runtime Libraries"
100   DESCRIPTION "Hello World Application Libraries"
101   GROUP Client
102   INSTALL_TYPES Full)
103 cpack_add_component(snowballsdata
104   DISPLAY_NAME "Snowballs Application Data"
105   DESCRIPTION "Snowballs Application Data"
106   GROUP Client
107   INSTALL_TYPES Full)
108 cpack_add_component(services
109   DISPLAY_NAME "Snowballs Services"
110   DESCRIPTION "Snowballs Services"
111   GROUP Server
112   INSTALL_TYPES Full)