2012-05-29 13:31:11 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#
|
2015-02-02 21:51:43 +00:00
|
|
|
# Ryzom Core
|
|
|
|
# Authors: Nevrax and the Ryzom Core Community
|
2015-04-14 09:55:08 +00:00
|
|
|
# Version: 0.12.0
|
2012-05-29 13:31:11 +00:00
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
|
2016-01-16 22:48:32 +00:00
|
|
|
# allow to link to qtmain automatically under Windows
|
|
|
|
IF(POLICY CMP0020)
|
|
|
|
CMAKE_POLICY(SET CMP0020 NEW)
|
|
|
|
ENDIF()
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
2015-11-29 13:12:55 +00:00
|
|
|
INCLUDE(nel)
|
|
|
|
INCLUDE(ConfigureChecks)
|
|
|
|
INCLUDE(CheckDepends)
|
2012-05-29 13:31:11 +00:00
|
|
|
INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
|
|
|
|
|
|
|
|
# Force out of source builds.
|
|
|
|
CHECK_OUT_OF_SOURCE()
|
|
|
|
|
2014-01-30 15:26:16 +00:00
|
|
|
# To be able to specify a different deployment target on Mac OS X :
|
|
|
|
# export MACOSX_DEPLOYMENT_TARGET=10.6
|
2013-03-28 15:42:16 +00:00
|
|
|
|
2016-01-16 14:47:13 +00:00
|
|
|
IF(CMAKE_VERSION VERSION_GREATER "2.8.10")
|
|
|
|
STRING(TIMESTAMP CURRENT_YEAR "%Y")
|
|
|
|
ELSE()
|
|
|
|
SET(CURRENT_YEAR "2016")
|
|
|
|
ENDIF()
|
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
|
|
|
PROJECT(RyzomCore CXX C)
|
2018-07-28 09:38:48 +00:00
|
|
|
SET(NL_VERSION_MAJOR 1)
|
|
|
|
SET(NL_VERSION_MINOR 0)
|
2015-04-14 09:55:08 +00:00
|
|
|
SET(NL_VERSION_PATCH 0)
|
2016-01-16 14:47:13 +00:00
|
|
|
SET(YEAR "2004-${CURRENT_YEAR}")
|
2016-07-27 10:48:16 +00:00
|
|
|
SET(AUTHOR "Winch Gate and The Ryzom Core Community")
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 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)
|
2016-10-27 08:54:09 +00:00
|
|
|
ELSE()
|
2012-05-29 13:31:11 +00:00
|
|
|
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
IF(WITH_MFC)
|
|
|
|
FIND_PACKAGE(MFC QUIET)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 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()
|
|
|
|
|
2012-09-23 18:27:51 +00:00
|
|
|
NL_SETUP_BUILD()
|
|
|
|
NL_SETUP_BUILD_FLAGS()
|
|
|
|
|
2018-07-28 09:31:32 +00:00
|
|
|
NL_SETUP_PREFIX_PATHS()
|
|
|
|
RYZOM_SETUP_PREFIX_PATHS()
|
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#Platform specifics
|
|
|
|
|
|
|
|
SETUP_EXTERNAL()
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET(WINSOCK2_LIB ws2_32.lib)
|
|
|
|
|
|
|
|
IF(WITH_MFC)
|
|
|
|
FIND_PACKAGE(CustomMFC REQUIRED)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
2015-12-13 12:06:23 +00:00
|
|
|
FIND_PACKAGE(ZLIB REQUIRED)
|
2012-05-29 13:31:11 +00:00
|
|
|
FIND_PACKAGE(LibXml2 REQUIRED)
|
|
|
|
FIND_PACKAGE(PNG REQUIRED)
|
2016-02-21 13:21:49 +00:00
|
|
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
2015-11-03 16:50:31 +00:00
|
|
|
FIND_PACKAGE(GIF)
|
2012-05-29 13:31:11 +00:00
|
|
|
FIND_PACKAGE(Jpeg)
|
|
|
|
|
2017-10-03 12:32:13 +00:00
|
|
|
IF(WIN32)
|
|
|
|
SET(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} Crypt32.lib)
|
|
|
|
ENDIF()
|
|
|
|
|
2016-10-31 18:00:19 +00:00
|
|
|
IF(WITH_LIBOVR)
|
|
|
|
FIND_PACKAGE(LibOVR)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(WITH_LIBVR)
|
|
|
|
FIND_PACKAGE(LibVR)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
NL_CONFIGURE_CHECKS()
|
|
|
|
|
2013-06-16 01:19:02 +00:00
|
|
|
IF(WITH_STATIC_LIBXML2)
|
|
|
|
SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} -DLIBXML_STATIC)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2013-09-08 10:52:00 +00:00
|
|
|
|
2015-02-20 15:24:19 +00:00
|
|
|
IF(WITH_LIBXML2_ICONV)
|
|
|
|
FIND_PACKAGE(Iconv REQUIRED)
|
|
|
|
INCLUDE_DIRECTORIES(${ICONV_INCLUDE_DIR})
|
|
|
|
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${ICONV_LIBRARIES})
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2015-02-20 15:24:19 +00:00
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
IF(WITH_STATIC)
|
|
|
|
# libxml2 could need winsock2 library
|
2016-01-16 14:50:17 +00:00
|
|
|
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()
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/PCHSupport.cmake)
|
|
|
|
|
|
|
|
IF(FINAL_VERSION)
|
|
|
|
ADD_DEFINITIONS(-DFINAL_VERSION=1)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
2014-06-13 17:00:24 +00:00
|
|
|
IF(WITH_SSE2)
|
|
|
|
ADD_DEFINITIONS(-DNL_HAS_SSE2)
|
|
|
|
IF(WITH_SSE3)
|
|
|
|
ADD_DEFINITIONS(-DNL_HAS_SSE3)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2014-06-13 17:00:24 +00:00
|
|
|
|
2017-04-21 09:03:39 +00:00
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(CARBON_FRAMEWORK Carbon)
|
|
|
|
FIND_LIBRARY(FOUNDATION_FRAMEWORK Foundation)
|
2016-01-03 16:47:31 +00:00
|
|
|
|
2017-04-21 09:03:39 +00:00
|
|
|
IF(APPLE_CERTIFICATE)
|
|
|
|
# Find codesign_allocate
|
2016-01-03 16:47:31 +00:00
|
|
|
|
2017-04-21 09:03:39 +00:00
|
|
|
# Xcode 7.0 and later versions
|
|
|
|
SET(CODESIGN_ALLOCATE ${OSX_DEVELOPER_ROOT}/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate)
|
2016-01-03 16:47:31 +00:00
|
|
|
|
2017-04-21 09:03:39 +00:00
|
|
|
IF(NOT EXISTS "${CODESIGN_ALLOCATE}")
|
|
|
|
# Xcode 6.4 and previous versions
|
|
|
|
SET(CODESIGN_ALLOCATE ${CMAKE_OSX_SYSROOT}/usr/bin/codesign_allocate)
|
|
|
|
ENDIF()
|
2016-01-03 16:47:31 +00:00
|
|
|
|
2017-04-21 09:03:39 +00:00
|
|
|
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()
|
2016-01-03 16:47:31 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
2018-07-28 09:44:33 +00:00
|
|
|
INCLUDE(FindHelpers)
|
2018-07-18 20:17:04 +00:00
|
|
|
|
2015-12-05 17:48:59 +00:00
|
|
|
IF(WITH_QT5)
|
2018-07-28 09:44:33 +00:00
|
|
|
FIND_QT5()
|
2015-12-05 17:48:59 +00:00
|
|
|
ENDIF()
|
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
IF(WITH_QT)
|
2015-12-13 12:09:25 +00:00
|
|
|
SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QTDIR} $ENV{QTDIR})
|
|
|
|
|
2015-12-05 17:48:59 +00:00
|
|
|
# Use Qt 4
|
2013-09-29 11:52:21 +00:00
|
|
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtXml QtOpenGL REQUIRED)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
2015-09-19 14:46:59 +00:00
|
|
|
IF(WITH_ASSIMP)
|
|
|
|
FIND_PACKAGE(assimp REQUIRED)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2015-09-19 14:46:59 +00:00
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
IF(WITH_NEL)
|
|
|
|
IF(WITH_NEL_TESTS)
|
|
|
|
FIND_PACKAGE(CppTest)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
2013-02-19 16:04:40 +00:00
|
|
|
IF(WITH_GUI)
|
2013-09-08 10:52:00 +00:00
|
|
|
FIND_PACKAGE(Luabind REQUIRED)
|
|
|
|
FIND_PACKAGE(CURL REQUIRED)
|
|
|
|
|
2015-02-20 17:10:06 +00:00
|
|
|
IF((WIN32 OR CURL_LIBRARIES MATCHES "\\.a") AND WITH_STATIC_CURL)
|
2013-09-08 10:52:00 +00:00
|
|
|
SET(CURL_STATIC ON)
|
2015-11-05 15:47:07 +00:00
|
|
|
ELSE()
|
2015-02-20 17:10:06 +00:00
|
|
|
SET(CURL_STATIC OFF)
|
2015-11-05 15:47:07 +00:00
|
|
|
ENDIF()
|
2013-09-08 10:52:00 +00:00
|
|
|
|
|
|
|
IF(CURL_STATIC)
|
|
|
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
|
|
|
2016-02-21 13:21:49 +00:00
|
|
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
2013-09-08 10:52:00 +00:00
|
|
|
|
2015-11-05 15:47:07 +00:00
|
|
|
IF(UNIX)
|
|
|
|
# CURL depends on libidn
|
2013-09-08 10:52:00 +00:00
|
|
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
2015-11-05 15:47:07 +00:00
|
|
|
IF(IDN_LIBRARY)
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY})
|
|
|
|
ENDIF()
|
2015-12-05 17:48:59 +00:00
|
|
|
|
2015-11-05 15:47:07 +00:00
|
|
|
# CURL Macports version depends on libidn, libintl and libiconv too
|
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
|
|
|
IF(INTL_LIBRARY)
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${INTL_LIBRARY})
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2013-02-19 16:04:40 +00:00
|
|
|
|
2016-01-26 21:30:13 +00:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include)
|
2012-05-29 13:31:11 +00:00
|
|
|
ADD_SUBDIRECTORY(nel)
|
2018-07-28 09:45:49 +00:00
|
|
|
|
|
|
|
# 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})
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WITH_RYZOM)
|
|
|
|
ADD_SUBDIRECTORY(ryzom)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WITH_NELNS)
|
|
|
|
ADD_SUBDIRECTORY(nelns)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WITH_SNOWBALLS)
|
|
|
|
ADD_SUBDIRECTORY(snowballs2)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WITH_TOOLS)
|
|
|
|
ADD_SUBDIRECTORY(tool)
|
2015-12-13 12:06:23 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
2014-05-05 23:30:28 +00:00
|
|
|
IF(WITH_STUDIO)
|
|
|
|
ADD_SUBDIRECTORY(studio)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2014-05-05 23:30:28 +00:00
|
|
|
|
2018-05-28 11:36:58 +00:00
|
|
|
IF(WITH_PERSONAL)
|
|
|
|
ADD_SUBDIRECTORY(personal)
|
|
|
|
ENDIF()
|
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
# 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)
|
2016-10-27 08:54:09 +00:00
|
|
|
ELSE()
|
2012-05-29 13:31:11 +00:00
|
|
|
SET(HAVE_DOT NO)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
# 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)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
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)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
# packaging information
|
2015-02-02 21:51:43 +00:00
|
|
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ryzom Core MMORPG Framework")
|
|
|
|
SET(CPACK_PACKAGE_VENDOR "Ryzom Core")
|
2012-05-29 13:31:11 +00:00
|
|
|
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;/")
|
2015-02-02 21:51:43 +00:00
|
|
|
SET(CPACK_PACKAGE_EXECUTABLES "ryzomcore${NL_VERSION}" "ryzomcore")
|
2015-02-05 23:31:51 +00:00
|
|
|
SET(CPACK_SET_DESTDIR TRUE)
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
# NSIS Specific Packing Setup
|
2015-02-02 21:51:43 +00:00
|
|
|
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "RyzomCore")
|
2012-05-29 13:31:11 +00:00
|
|
|
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)
|
2015-02-02 21:51:43 +00:00
|
|
|
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} RyzomCore")
|
2012-05-29 13:31:11 +00:00
|
|
|
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
|
2015-02-02 21:51:43 +00:00
|
|
|
SET(CPACK_PACKAGE_FILE_NAME "ryzomcore-${NL_VERSION}")
|
|
|
|
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "ryzomcore-${NL_VERSION}")
|
2012-05-29 13:31:11 +00:00
|
|
|
IF(WIN32)
|
|
|
|
#SET(CPACK_GENERATOR "NSIS")
|
|
|
|
SET(CPACK_GENERATOR "NSIS;ZIP")
|
|
|
|
SET(CPACK_SOURCE_GENERATOR "ZIP")
|
2016-10-27 08:54:09 +00:00
|
|
|
ELSE()
|
2012-05-29 13:31:11 +00:00
|
|
|
SET(CPACK_GENERATOR "TGZ")
|
|
|
|
SET(CPACK_SOURCE_GENERATOR "TGZ")
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
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"
|
2012-09-27 20:11:26 +00:00
|
|
|
DESTINATION ${NL_BIN_PREFIX})
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
|
|
|
ELSE()
|
2012-05-29 13:31:11 +00:00
|
|
|
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"
|
2012-09-27 20:11:26 +00:00
|
|
|
DESTINATION ${NL_BIN_PREFIX})
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
# Install CEGUI and its dependencies.
|
|
|
|
IF(WITH_NEL_CEGUI)
|
2012-09-27 20:11:26 +00:00
|
|
|
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})
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
# Only the tools require MFC.
|
|
|
|
IF(WITH_TOOLS)
|
|
|
|
SET(CMAKE_INSTALL_MFC_LIBRARIES TRUE)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
#INCLUDE(InstallRequiredSystemLibraries)
|
2016-10-27 08:54:09 +00:00
|
|
|
ENDIF()
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
INCLUDE(CPack)
|
|
|
|
|
|
|
|
INCLUDE(CMakePackaging.txt)
|
|
|
|
|
|
|
|
## Debian Packages
|
|
|
|
#INCLUDE(UseDebian)
|
|
|
|
#IF(DEBIAN_FOUND)
|
|
|
|
# ADD_DEBIAN_TARGETS(nel)
|
2016-10-27 08:54:09 +00:00
|
|
|
#ENDIF()
|