You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
450 lines
13 KiB
CMake
450 lines
13 KiB
CMake
13 years ago
|
#-----------------------------------------------------------------------------
|
||
|
#
|
||
10 years ago
|
# Ryzom Core
|
||
|
# Authors: Nevrax and the Ryzom Core Community
|
||
10 years ago
|
# Version: 0.12.0
|
||
13 years ago
|
#
|
||
|
# Notes:
|
||
|
# * Changing install location: add -DCMAKE_INSTALL_PREFIX:PATH=/my/new/path
|
||
|
# * Changing specific install location variables:
|
||
|
# * NL_ETC_PREFIX (default: $CMAKE_INSTALL_PREFIX/etc)
|
||
|
# * NL_SHARE_PREFIX (default: $CMAKE_INSTALL_PREFIX/share)
|
||
|
# * NL_BIN_PREFIX (default: $CMAKE_INSTALL_PREFIX/bin)
|
||
|
# * NL_SBIN_PREFIX (default: $CMAKE_INSTALL_PREFIX/sbin)
|
||
|
# * NL_LIB_PREFIX (default: $CMAKE_INSTALL_PREFIX/lib)
|
||
|
# * NL_DRIVER_PREFIX (default: $CMAKE_INSTALL_PREFIX/lib (windows) or $CMAKE_INSTALL_PREFIX/lib/nel)
|
||
|
# * Enable building of documentation: add -DBUILD_DOCUMENTATION:BOOL=ON - new make target: DoxygenDoc
|
||
|
# * Updating version: update header (above) but also update NL_VERSION below.
|
||
|
# * To build binary archive, use the 'package' target.
|
||
|
# To build source archive, use the 'package_source' target.
|
||
|
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# Load some macros.
|
||
|
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# Set CMake 2.6 Policies.
|
||
|
IF(COMMAND cmake_policy)
|
||
|
# Works around warnings libraries linked against that don't
|
||
|
# have absolute paths (e.g. -lpthread)
|
||
|
cmake_policy(SET CMP0003 NEW)
|
||
|
|
||
9 years ago
|
# allow to link to qtmain automatically under Windows
|
||
|
IF(POLICY CMP0020)
|
||
|
CMAKE_POLICY(SET CMP0020 NEW)
|
||
|
ENDIF()
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
9 years ago
|
INCLUDE(nel)
|
||
|
INCLUDE(ConfigureChecks)
|
||
|
INCLUDE(CheckDepends)
|
||
13 years ago
|
INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
|
||
|
|
||
|
# Force out of source builds.
|
||
|
CHECK_OUT_OF_SOURCE()
|
||
|
|
||
11 years ago
|
# To be able to specify a different deployment target on Mac OS X :
|
||
|
# export MACOSX_DEPLOYMENT_TARGET=10.6
|
||
12 years ago
|
|
||
9 years ago
|
IF(CMAKE_VERSION VERSION_GREATER "2.8.10")
|
||
|
STRING(TIMESTAMP CURRENT_YEAR "%Y")
|
||
|
ELSE()
|
||
5 years ago
|
SET(CURRENT_YEAR "2019")
|
||
9 years ago
|
ENDIF()
|
||
|
|
||
13 years ago
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
||
|
PROJECT(RyzomCore CXX C)
|
||
7 years ago
|
SET(NL_VERSION_MAJOR 1)
|
||
|
SET(NL_VERSION_MINOR 0)
|
||
5 years ago
|
SET(NL_VERSION_PATCH 2)
|
||
|
SET(YEAR "2001-${CURRENT_YEAR}")
|
||
9 years ago
|
SET(AUTHOR "Winch Gate and The Ryzom Core Community")
|
||
13 years ago
|
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# Redirect output files
|
||
|
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||
|
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||
|
|
||
|
# DLL should be in the same directory as EXE under Windows
|
||
|
IF(WIN32)
|
||
|
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||
8 years ago
|
ELSE()
|
||
13 years ago
|
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WIN32)
|
||
|
IF(WITH_MFC)
|
||
|
FIND_PACKAGE(MFC QUIET)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# Set default config options
|
||
|
#
|
||
|
NL_SETUP_DEFAULT_OPTIONS()
|
||
|
NL_SETUP_NEL_DEFAULT_OPTIONS()
|
||
|
NL_SETUP_NELNS_DEFAULT_OPTIONS()
|
||
|
NL_SETUP_RYZOM_DEFAULT_OPTIONS()
|
||
|
NL_SETUP_SNOWBALLS_DEFAULT_OPTIONS()
|
||
|
|
||
12 years ago
|
NL_SETUP_BUILD()
|
||
|
NL_SETUP_BUILD_FLAGS()
|
||
|
|
||
7 years ago
|
NL_SETUP_PREFIX_PATHS()
|
||
|
RYZOM_SETUP_PREFIX_PATHS()
|
||
|
|
||
5 years ago
|
#-----------------------------------------------------------------------------
|
||
|
# Default values for URL's
|
||
|
SET(RYZOM_CLIENT_CREATE_ACCOUNT_URL "https://open.ryzom.dev/ams/" CACHE STRING "Ryzom Client Create Account URL")
|
||
|
SET(RYZOM_CLIENT_EDIT_ACCOUNT_URL "https://open.ryzom.dev/ams/" CACHE STRING "Ryzom Client Edit Account URL")
|
||
|
SET(RYZOM_CLIENT_FORGET_PASSWORD_URL "https://open.ryzom.dev/ams/" CACHE STRING "Ryzom Client Forget Password URL")
|
||
|
SET(RYZOM_CLIENT_PATCH_URL "https://cdn.ryzom.dev/open/patch/" CACHE STRING "Ryzom Client Patch URL")
|
||
|
|
||
|
SET(RYZOM_WEBIG_MAIN_URL "https://open.ryzom.dev/" CACHE STRING "Ryzom Client WebIG Main URL")
|
||
|
SET(RYZOM_WEBIG_TRUSTED_DOMAIN "open.ryzom.dev" CACHE STRING "Ryzom Client WebIG Trusted Domain")
|
||
|
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# urls when compiling ryzom live client
|
||
|
IF(WITH_RYZOM_LIVE)
|
||
|
MESSAGE("Using RYZOM_LIVE urls")
|
||
|
SET(RYZOM_CLIENT_CREATE_ACCOUNT_URL "https://account.ryzom.com/signup/from_client.php")
|
||
|
SET(RYZOM_CLIENT_EDIT_ACCOUNT_URL "https://account.ryzom.com/payment_profile/index.php")
|
||
|
SET(RYZOM_CLIENT_FORGET_PASSWORD_URL "https://account.ryzom.com/payment_profile/lost_secure_password.php")
|
||
|
SET(RYZOM_CLIENT_PATCH_URL "http://dl.ryzom.com/patch_live")
|
||
|
|
||
|
SET(RYZOM_WEBIG_MAIN_URL "https://app.ryzom.com/")
|
||
|
SET(RYZOM_WEBIG_TRUSTED_DOMAIN "app.ryzom.com")
|
||
|
ENDIF()
|
||
|
|
||
13 years ago
|
#-----------------------------------------------------------------------------
|
||
|
#Platform specifics
|
||
|
|
||
|
SETUP_EXTERNAL()
|
||
|
|
||
|
IF(WIN32)
|
||
|
SET(WINSOCK2_LIB ws2_32.lib)
|
||
|
|
||
|
IF(WITH_MFC)
|
||
|
FIND_PACKAGE(CustomMFC REQUIRED)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
9 years ago
|
FIND_PACKAGE(ZLIB REQUIRED)
|
||
13 years ago
|
FIND_PACKAGE(LibXml2 REQUIRED)
|
||
|
FIND_PACKAGE(PNG REQUIRED)
|
||
9 years ago
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
||
9 years ago
|
FIND_PACKAGE(GIF)
|
||
13 years ago
|
FIND_PACKAGE(Jpeg)
|
||
|
|
||
7 years ago
|
IF(WIN32)
|
||
|
SET(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} Crypt32.lib)
|
||
|
ENDIF()
|
||
|
|
||
8 years ago
|
IF(WITH_LIBOVR)
|
||
|
FIND_PACKAGE(LibOVR)
|
||
|
ENDIF()
|
||
|
|
||
|
IF(WITH_LIBVR)
|
||
|
FIND_PACKAGE(LibVR)
|
||
|
ENDIF()
|
||
|
|
||
|
NL_CONFIGURE_CHECKS()
|
||
|
|
||
12 years ago
|
IF(WITH_STATIC_LIBXML2)
|
||
|
SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} -DLIBXML_STATIC)
|
||
8 years ago
|
ENDIF()
|
||
11 years ago
|
|
||
10 years ago
|
IF(WITH_LIBXML2_ICONV)
|
||
|
FIND_PACKAGE(Iconv REQUIRED)
|
||
|
INCLUDE_DIRECTORIES(${ICONV_INCLUDE_DIR})
|
||
|
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${ICONV_LIBRARIES})
|
||
8 years ago
|
ENDIF()
|
||
10 years ago
|
|
||
13 years ago
|
IF(WITH_STATIC)
|
||
|
# libxml2 could need winsock2 library
|
||
9 years ago
|
IF(WINSOCK2_LIB)
|
||
|
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${WINSOCK2_LIB})
|
||
|
ENDIF()
|
||
|
|
||
|
IF(UNIX)
|
||
|
# under Linux and OS X, recent libxml2 versions are linked against liblzma
|
||
|
FIND_PACKAGE(LibLZMA)
|
||
|
IF(LIBLZMA_LIBRARIES)
|
||
|
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${LIBLZMA_LIBRARIES})
|
||
|
ENDIF()
|
||
|
ENDIF()
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/PCHSupport.cmake)
|
||
|
|
||
|
IF(FINAL_VERSION)
|
||
|
ADD_DEFINITIONS(-DFINAL_VERSION=1)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
11 years ago
|
IF(WITH_SSE2)
|
||
|
ADD_DEFINITIONS(-DNL_HAS_SSE2)
|
||
|
IF(WITH_SSE3)
|
||
|
ADD_DEFINITIONS(-DNL_HAS_SSE3)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
11 years ago
|
|
||
8 years ago
|
IF(APPLE)
|
||
|
FIND_LIBRARY(CARBON_FRAMEWORK Carbon)
|
||
|
FIND_LIBRARY(FOUNDATION_FRAMEWORK Foundation)
|
||
6 years ago
|
FIND_LIBRARY(SECURITY_FRAMEWORK Security)
|
||
9 years ago
|
|
||
8 years ago
|
IF(APPLE_CERTIFICATE)
|
||
|
# Find codesign_allocate
|
||
9 years ago
|
|
||
8 years ago
|
# Xcode 7.0 and later versions
|
||
|
SET(CODESIGN_ALLOCATE ${OSX_DEVELOPER_ROOT}/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate)
|
||
9 years ago
|
|
||
8 years ago
|
IF(NOT EXISTS "${CODESIGN_ALLOCATE}")
|
||
|
# Xcode 6.4 and previous versions
|
||
|
SET(CODESIGN_ALLOCATE ${CMAKE_OSX_SYSROOT}/usr/bin/codesign_allocate)
|
||
|
ENDIF()
|
||
9 years ago
|
|
||
8 years ago
|
IF(NOT EXISTS "${CODESIGN_ALLOCATE}")
|
||
|
# System path
|
||
|
SET(CODESIGN_ALLOCATE /usr/bin/codesign_allocate)
|
||
|
ENDIF()
|
||
|
|
||
|
IF(NOT EXISTS "${CODESIGN_ALLOCATE}")
|
||
|
MESSAGE(WARNING "Unable to find codesign_allocate in standard directories")
|
||
|
SET(CODESIGN_ALLOCATE)
|
||
|
ENDIF()
|
||
9 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
|
|
||
7 years ago
|
INCLUDE(FindHelpers)
|
||
7 years ago
|
|
||
9 years ago
|
IF(WITH_QT5)
|
||
7 years ago
|
FIND_QT5()
|
||
9 years ago
|
ENDIF()
|
||
|
|
||
13 years ago
|
IF(WITH_QT)
|
||
9 years ago
|
SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QTDIR} $ENV{QTDIR})
|
||
|
|
||
9 years ago
|
# Use Qt 4
|
||
11 years ago
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtXml QtOpenGL REQUIRED)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
9 years ago
|
IF(WITH_ASSIMP)
|
||
|
FIND_PACKAGE(assimp REQUIRED)
|
||
8 years ago
|
ENDIF()
|
||
9 years ago
|
|
||
13 years ago
|
IF(WITH_NEL)
|
||
|
IF(WITH_NEL_TESTS)
|
||
|
FIND_PACKAGE(CppTest)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
12 years ago
|
IF(WITH_GUI)
|
||
11 years ago
|
FIND_PACKAGE(Luabind REQUIRED)
|
||
5 years ago
|
ENDIF()
|
||
|
|
||
11 years ago
|
FIND_PACKAGE(CURL REQUIRED)
|
||
|
|
||
10 years ago
|
IF((WIN32 OR CURL_LIBRARIES MATCHES "\\.a") AND WITH_STATIC_CURL)
|
||
11 years ago
|
SET(CURL_STATIC ON)
|
||
9 years ago
|
ELSE()
|
||
10 years ago
|
SET(CURL_STATIC OFF)
|
||
9 years ago
|
ENDIF()
|
||
11 years ago
|
|
||
|
IF(CURL_STATIC)
|
||
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
||
|
|
||
6 years ago
|
LIST(APPEND CURL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
|
||
|
LIST(APPEND CURL_LIBRARIES ${OPENSSL_LIBRARIES})
|
||
11 years ago
|
|
||
6 years ago
|
IF(WIN32)
|
||
|
LIST(APPEND CURL_LIBRARIES Crypt32 Cryptui)
|
||
|
ELSE()
|
||
9 years ago
|
# CURL depends on libidn
|
||
11 years ago
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
||
9 years ago
|
IF(IDN_LIBRARY)
|
||
6 years ago
|
LIST(APPEND CURL_LIBRARIES ${IDN_LIBRARY})
|
||
9 years ago
|
ENDIF()
|
||
9 years ago
|
|
||
6 years ago
|
# CURL Macports version can depend on libidn, libidn2, libintl, libpsl and libiconv too
|
||
9 years ago
|
IF(APPLE)
|
||
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
||
|
IF(INTL_LIBRARY)
|
||
6 years ago
|
LIST(APPEND CURL_LIBRARIES ${INTL_LIBRARY})
|
||
9 years ago
|
ENDIF()
|
||
6 years ago
|
|
||
6 years ago
|
FIND_LIBRARY(IDN2_LIBRARY idn2)
|
||
|
IF(IDN2_LIBRARY)
|
||
|
LIST(APPEND CURL_LIBRARIES ${IDN2_LIBRARY})
|
||
|
ENDIF()
|
||
|
|
||
|
FIND_LIBRARY(PSL_LIBRARY psl)
|
||
|
IF(PSL_LIBRARY)
|
||
|
LIST(APPEND CURL_LIBRARIES ${PSL_LIBRARY})
|
||
|
ENDIF()
|
||
|
|
||
6 years ago
|
FIND_LIBRARY(UNISTRING_LIBRARY unistring)
|
||
|
IF(UNISTRING_LIBRARY)
|
||
|
LIST(APPEND CURL_LIBRARIES ${UNISTRING_LIBRARY})
|
||
|
ENDIF()
|
||
|
|
||
6 years ago
|
LIST(APPEND CURL_LIBRARIES ${SECURITY_FRAMEWORK})
|
||
9 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
|
ENDIF()
|
||
12 years ago
|
|
||
9 years ago
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include)
|
||
13 years ago
|
ADD_SUBDIRECTORY(nel)
|
||
7 years ago
|
|
||
|
# Aliases for targets
|
||
|
SET(NELMISC_LIBRARIES nelmisc)
|
||
|
SET(NELNET_LIBRARIES nelnet)
|
||
|
SET(NELLIGO_LIBRARIES nelligo)
|
||
|
SET(NELGEORGES_LIBRARIES nelgeorges)
|
||
|
SET(NEL3D_LIBRARIES nel3d)
|
||
|
SET(NELGUI_LIBRARIES nelgui)
|
||
|
SET(NELSOUND_LIBRARIES nelsound)
|
||
|
ELSE()
|
||
|
# FIND_PACKAGE(NeL COMPONENTS 3d misc pacs sound nimp REQUIRED)
|
||
|
FIND_PACKAGE(NeL REQUIRED)
|
||
|
INCLUDE_DIRECTORIES(${NEL_INCLUDE_DIRS})
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_RYZOM)
|
||
|
ADD_SUBDIRECTORY(ryzom)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_NELNS)
|
||
|
ADD_SUBDIRECTORY(nelns)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_SNOWBALLS)
|
||
|
ADD_SUBDIRECTORY(snowballs2)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_TOOLS)
|
||
|
ADD_SUBDIRECTORY(tool)
|
||
9 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
11 years ago
|
IF(WITH_STUDIO)
|
||
|
ADD_SUBDIRECTORY(studio)
|
||
8 years ago
|
ENDIF()
|
||
11 years ago
|
|
||
7 years ago
|
IF(WITH_PERSONAL)
|
||
|
ADD_SUBDIRECTORY(personal)
|
||
|
ENDIF()
|
||
|
|
||
13 years ago
|
# To build the documention, you will have to enable it
|
||
|
# and then do the equivalent of "make DoxygenDoc".
|
||
|
IF(BUILD_DOCUMENTATION)
|
||
|
IF(DOT)
|
||
|
SET(HAVE_DOT YES)
|
||
8 years ago
|
ELSE()
|
||
13 years ago
|
SET(HAVE_DOT NO)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
# This processes our Doxyfile.in and substitutes paths to generate
|
||
|
# a final Doxyfile
|
||
|
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/doc/Doxyfile.cmake.in ${CMAKE_BINARY_DIR}/doc/Doxyfile)
|
||
|
|
||
|
ADD_CUSTOM_TARGET(DoxygenDoc ${DOXYGEN} ${CMAKE_BINARY_DIR}/doc/Doxyfile)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_NEL_TESTS)
|
||
|
ENABLE_TESTING()
|
||
|
ADD_TEST(nel_unit_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nel_unit_test --html)
|
||
|
IF(BUILD_DASHBOARD)
|
||
|
INCLUDE(Dart)
|
||
|
SET(SVNCOMMAND svn)
|
||
|
SET(SVNSOURCEDIR http://dev.ryzom.com/svn/trunk/nel)
|
||
|
SET(GENERATELOGS svn2cl)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
|
# packaging information
|
||
10 years ago
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ryzom Core MMORPG Framework")
|
||
|
SET(CPACK_PACKAGE_VENDOR "Ryzom Core")
|
||
13 years ago
|
SET(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README)
|
||
|
SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING)
|
||
|
SET(CPACK_PACKAGE_VERSION_MAJOR "${NL_VERSION_MAJOR}")
|
||
|
SET(CPACK_PACKAGE_VERSION_MINOR "${NL_VERSION_MINOR}")
|
||
|
SET(CPACK_PACKAGE_VERSION_PATCH "${NL_VERSION_PATCH}")
|
||
|
SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};NeL;ALL;/")
|
||
10 years ago
|
SET(CPACK_PACKAGE_EXECUTABLES "ryzomcore${NL_VERSION}" "ryzomcore")
|
||
10 years ago
|
SET(CPACK_SET_DESTDIR TRUE)
|
||
13 years ago
|
|
||
|
# NSIS Specific Packing Setup
|
||
10 years ago
|
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "RyzomCore")
|
||
13 years ago
|
SET(CPACK_NSIS_MODIFY_PATH "ON")
|
||
|
SET(CPACK_NSIS_MUI_ICON ${CMAKE_SOURCE_DIR}/resources/nevraxpill.ico)
|
||
|
SET(CPACK_NSIS_MUI_UNIICON ${CMAKE_SOURCE_DIR}/resources/nevraxpill.ico)
|
||
|
SET(CPACK_PACKAGE_ICON ${CMAKE_SOURCE_DIR}/resources\\\\nel.bmp)
|
||
10 years ago
|
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} RyzomCore")
|
||
13 years ago
|
SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\dev.ryzom.com")
|
||
|
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\dev.ryzom.com\\\\projects\\\\nel\\\\wiki")
|
||
|
SET(CPACK_NSIS_CONTACT "matt.raykowski@gmail.com")
|
||
|
|
||
|
## Source Packages
|
||
10 years ago
|
SET(CPACK_PACKAGE_FILE_NAME "ryzomcore-${NL_VERSION}")
|
||
|
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "ryzomcore-${NL_VERSION}")
|
||
13 years ago
|
IF(WIN32)
|
||
|
#SET(CPACK_GENERATOR "NSIS")
|
||
|
SET(CPACK_GENERATOR "NSIS;ZIP")
|
||
|
SET(CPACK_SOURCE_GENERATOR "ZIP")
|
||
8 years ago
|
ELSE()
|
||
13 years ago
|
SET(CPACK_GENERATOR "TGZ")
|
||
|
SET(CPACK_SOURCE_GENERATOR "TGZ")
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
set(CPACK_SOURCE_IGNORE_FILES
|
||
|
"~$"
|
||
|
"\\\\.cvsignore$"
|
||
|
"^${CMAKE_SOURCE_DIR}.*/CVS/"
|
||
|
"^${CMAKE_SOURCE_DIR}.*/\\\\.svn/"
|
||
|
"^${CMAKE_SOURCE_DIR}/debian/"
|
||
|
"^${CMAKE_SOURCE_DIR}/old/")
|
||
|
IF(WIN32)
|
||
|
IF(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
||
|
SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE)
|
||
|
IF(WITH_QT)
|
||
|
INCLUDE(${QT_USE_FILE})
|
||
|
INSTALL(FILES
|
||
|
"${QT_LIBRARY_DIR}/../bin/QtGuid4.dll"
|
||
|
"${QT_LIBRARY_DIR}/../bin/QtXmld4.dll"
|
||
|
"${QT_LIBRARY_DIR}/../bin/QtCored4.dll"
|
||
12 years ago
|
DESTINATION ${NL_BIN_PREFIX})
|
||
8 years ago
|
ENDIF()
|
||
|
ELSE()
|
||
13 years ago
|
IF(WITH_QT)
|
||
|
INCLUDE(${QT_USE_FILE})
|
||
|
INSTALL(FILES
|
||
|
"${QT_LIBRARY_DIR}/../bin/QtGui4.dll"
|
||
|
"${QT_LIBRARY_DIR}/../bin/QtXml4.dll"
|
||
|
"${QT_LIBRARY_DIR}/../bin/QtCore4.dll"
|
||
12 years ago
|
DESTINATION ${NL_BIN_PREFIX})
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
|
# Install CEGUI and its dependencies.
|
||
|
IF(WITH_NEL_CEGUI)
|
||
12 years ago
|
INSTALL(FILES "${CEGUI_LIB_DIR}/CEGUIBase.dll" DESTINATION ${NL_BIN_PREFIX})
|
||
|
INSTALL(FILES "${CEGUI_LIB_DIR}/CEGUIDevilImageCodec.dll" DESTINATION ${NL_BIN_PREFIX})
|
||
|
INSTALL(FILES "${CEGUI_LIB_DIR}/CEGUIExpatParser.dll" DESTINATION ${NL_BIN_PREFIX})
|
||
|
INSTALL(FILES "${CEGUI_LIB_DIR}/CEGUIFalagardWRBase.dll" DESTINATION ${NL_BIN_PREFIX})
|
||
|
INSTALL(FILES "${CEGUI_LIB_DIR}/Devil.dll" DESTINATION ${NL_BIN_PREFIX})
|
||
|
INSTALL(FILES "${CEGUI_LIB_DIR}/ILU.dll" DESTINATION ${NL_BIN_PREFIX})
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
# Only the tools require MFC.
|
||
|
IF(WITH_TOOLS)
|
||
|
SET(CMAKE_INSTALL_MFC_LIBRARIES TRUE)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
#INCLUDE(InstallRequiredSystemLibraries)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
INCLUDE(CPack)
|
||
|
|
||
|
INCLUDE(CMakePackaging.txt)
|
||
|
|
||
|
## Debian Packages
|
||
|
#INCLUDE(UseDebian)
|
||
|
#IF(DEBIAN_FOUND)
|
||
|
# ADD_DEBIAN_TARGETS(nel)
|
||
8 years ago
|
#ENDIF()
|