2013-07-19 16:11:31 +00:00
|
|
|
|
|
|
|
# Need clientsheets lib for sheets packer tool
|
|
|
|
ADD_SUBDIRECTORY(client_sheets)
|
|
|
|
|
|
|
|
IF(WITH_RYZOM_CLIENT)
|
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
# These are Windows/MFC apps
|
2010-07-17 16:22:32 +00:00
|
|
|
SET(SEVENZIP_LIBRARY "ryzom_sevenzip")
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-08-03 21:05:05 +00:00
|
|
|
ADD_SUBDIRECTORY(seven_zip)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-10-01 15:25:31 +00:00
|
|
|
FILE(GLOB CFG ../*.cfg ../*.cfg.in)
|
|
|
|
FILE(GLOB SRC *.cpp *.h motion/*.cpp motion/*.h client.rc)
|
|
|
|
FILE(GLOB SRC_INTERFACE interface_v3/*.h interface_v3/*.cpp)
|
|
|
|
FILE(GLOB SRC_MODE motion/modes/*.cpp motion/modes/*.h)
|
|
|
|
FILE(GLOB SRC_R2 r2/*.h r2/*.cpp r2/dmc/*.h r2/dmc/*.cpp)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
# Filter out the source files not actually compiled.
|
2010-07-17 16:09:03 +00:00
|
|
|
LIST(REMOVE_ITEM SRC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/animated_scene_object.cpp
|
2010-05-06 00:08:41 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/animated_scene_object.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/animation_fx_sheet.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/animation_fx_sheet.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/3d_notes.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/3d_notes.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rosace_functions.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rosace_functions.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/scene_parser.cpp
|
2010-10-01 15:25:31 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/scene_parser.h)
|
|
|
|
LIST(REMOVE_ITEM SRC_MODE
|
2010-05-06 00:08:41 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/motion/modes/free_head.cpp
|
2010-10-01 15:25:31 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/motion/modes/free_head.h)
|
|
|
|
LIST(REMOVE_ITEM SRC_INTERFACE
|
2010-05-11 19:45:01 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/interface_v3/lua_dll.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/interface_v3/lua_dll.h
|
2010-05-06 00:08:41 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/interface_v3/view_bitmap_progress.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/interface_v3/view_bitmap_progress.h)
|
|
|
|
|
2010-10-01 15:25:31 +00:00
|
|
|
SOURCE_GROUP("" FILES ${SRC})
|
|
|
|
SOURCE_GROUP("cfg" FILES ${CFG})
|
|
|
|
SOURCE_GROUP("interface_v3" FILES ${SRC_INTERFACE})
|
|
|
|
SOURCE_GROUP("mode" FILES ${SRC_MODE})
|
|
|
|
SOURCE_GROUP("r2" FILES ${SRC_R2})
|
|
|
|
|
2010-05-31 19:32:36 +00:00
|
|
|
# on Mac, create a .App Bundle
|
|
|
|
if(APPLE)
|
|
|
|
SET(MACOSX_BUNDLE_INFO_STRING "Ryzom Core Client")
|
2012-05-07 08:30:24 +00:00
|
|
|
SET(MACOSX_BUNDLE_ICON_FILE "ryzom.icns")
|
2010-05-31 19:32:36 +00:00
|
|
|
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "")
|
2010-07-17 16:22:32 +00:00
|
|
|
SET(MACOSX_BUNDLE_LONG_VERSION_STRING ${NL_VERSION})
|
2010-05-31 19:32:36 +00:00
|
|
|
SET(MACOSX_BUNDLE_BUNDLE_NAME "Ryzom Core Client")
|
|
|
|
SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "0.8")
|
|
|
|
SET(MACOSX_BUNDLE_BUNDLE_VERSION "1.0")
|
|
|
|
SET(MACOSX_BUNDLE_COPYRIGHT "Winchgate and The Ryzom Core Community")
|
2012-05-07 08:30:24 +00:00
|
|
|
SET(RYZOM_OUTPUT_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${MACOSX_BUNDLE_BUNDLE_NAME}.app)
|
|
|
|
SET(RYZOM_CONTENTS_DIR ${RYZOM_OUTPUT_DIR}/Contents)
|
|
|
|
SET(RYZOM_RESOURCES_DIR ${RYZOM_CONTENTS_DIR}/Resources)
|
|
|
|
SET(MAC_RESOURCES_DIR ${CMAKE_SOURCE_DIR}/ryzom/client/macosx)
|
2010-05-31 19:32:36 +00:00
|
|
|
ENDIF(APPLE)
|
|
|
|
|
2010-10-01 15:25:31 +00:00
|
|
|
ADD_EXECUTABLE(ryzom_client WIN32 MACOSX_BUNDLE ${SRC} ${SRC_INTERFACE} ${SRC_MODE} ${SRC_R2})
|
2010-09-03 20:16:10 +00:00
|
|
|
|
2012-05-07 08:30:24 +00:00
|
|
|
IF(APPLE)
|
|
|
|
SET_TARGET_PROPERTIES(ryzom_client PROPERTIES OUTPUT_NAME ${MACOSX_BUNDLE_BUNDLE_NAME})
|
|
|
|
SET_TARGET_PROPERTIES(ryzom_client PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${MAC_RESOURCES_DIR}/Info.plist)
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client PRE_BUILD COMMAND mkdir -p ${RYZOM_RESOURCES_DIR})
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client POST_BUILD COMMAND cp ARGS ${MAC_RESOURCES_DIR}/PkgInfo ${RYZOM_CONTENTS_DIR})
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client POST_BUILD COMMAND cp ARGS ${MAC_RESOURCES_DIR}/ryzom.icns ${RYZOM_RESOURCES_DIR})
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client POST_BUILD COMMAND cp ARGS ${CMAKE_SOURCE_DIR}/ryzom/client/client_default.cfg ${RYZOM_RESOURCES_DIR})
|
|
|
|
|
|
|
|
IF(RYZOM_DATA_DIR)
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client POST_BUILD COMMAND cp -R ARGS ${RYZOM_DATA_DIR} ${RYZOM_RESOURCES_DIR})
|
|
|
|
ENDIF(RYZOM_DATA_DIR)
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
2010-05-31 19:32:36 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
2010-09-05 09:29:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2010-07-17 16:09:03 +00:00
|
|
|
${LIBXML2_INCLUDE_DIR}
|
|
|
|
${LUA_INCLUDE_DIR}
|
2010-08-20 11:27:17 +00:00
|
|
|
${LUABIND_INCLUDE_DIR}
|
2010-07-17 16:09:03 +00:00
|
|
|
${LIBWWW_INCLUDE_DIR}
|
|
|
|
${CURL_INCLUDE_DIRS}
|
2010-09-04 17:51:20 +00:00
|
|
|
)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-09-26 21:27:52 +00:00
|
|
|
TARGET_LINK_LIBRARIES(ryzom_client
|
2010-09-14 11:53:14 +00:00
|
|
|
nelmisc
|
|
|
|
nelnet
|
|
|
|
nelligo
|
|
|
|
nelgeorges
|
|
|
|
nel3d
|
2012-05-10 20:17:04 +00:00
|
|
|
nelgui
|
2010-09-14 11:53:14 +00:00
|
|
|
nelsound
|
|
|
|
ryzom_clientsheets
|
|
|
|
ryzom_gameshare
|
|
|
|
nelpacs
|
|
|
|
${LIBXML2_LIBRARIES}
|
|
|
|
${LUA_LIBRARIES}
|
|
|
|
${LUABIND_LIBRARIES}
|
|
|
|
${CURL_LIBRARIES}
|
|
|
|
${LIBWWW_LIBRARIES}
|
2010-09-23 14:14:37 +00:00
|
|
|
${SEVENZIP_LIBRARY}
|
|
|
|
)
|
|
|
|
|
2010-08-13 16:16:37 +00:00
|
|
|
IF(NOT APPLE AND NOT WIN32)
|
2011-09-11 12:44:37 +00:00
|
|
|
TARGET_LINK_LIBRARIES(ryzom_client ${X11_LIBRARIES})
|
2010-08-13 16:16:37 +00:00
|
|
|
ENDIF(NOT APPLE AND NOT WIN32)
|
2010-05-31 19:32:36 +00:00
|
|
|
|
2010-11-03 12:39:35 +00:00
|
|
|
IF(APPLE)
|
2011-09-11 12:44:37 +00:00
|
|
|
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation)
|
|
|
|
TARGET_LINK_LIBRARIES(ryzom_client ${FOUNDATION_LIBRARY})
|
2010-11-03 12:39:35 +00:00
|
|
|
ENDIF(APPLE)
|
|
|
|
|
2010-12-30 11:20:42 +00:00
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} ${LUABIND_DEFINITIONS})
|
2010-09-03 20:48:53 +00:00
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
NL_DEFAULT_PROPS(ryzom_client "Ryzom, Client: Ryzom Core Client")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(ryzom_client)
|
|
|
|
|
2010-09-14 11:53:14 +00:00
|
|
|
NL_ADD_LIB_SUFFIX(ryzom_client)
|
|
|
|
|
2010-06-30 13:31:31 +00:00
|
|
|
IF(WITH_PCH)
|
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(ryzom_client ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.cpp)
|
|
|
|
ENDIF(WITH_PCH)
|
|
|
|
|
2011-09-11 12:44:37 +00:00
|
|
|
INSTALL(TARGETS ryzom_client RUNTIME DESTINATION ${RYZOM_GAMES_PREFIX} COMPONENT client BUNDLE DESTINATION /Applications)
|
2013-07-19 16:11:31 +00:00
|
|
|
|
|
|
|
ENDIF(WITH_RYZOM_CLIENT)
|