-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
47 lines (37 loc) · 1.32 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
IF(NOT WITH_BMSITE_RRS)
RETURN()
ENDIF(NOT WITH_BMSITE_RRS)
# 'client_sheets' and 'game_share'
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/ryzom/client/src
${CMAKE_SOURCE_DIR}/ryzom/common/src
${LIBXML2_INCLUDE_DIR}
)
# compile client sheets even when client is not compiled
IF(NOT WITH_RYZOM_CLIENT)
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/ryzom/client/src/client_sheets "${CMAKE_BINARY_DIR}/ryzom/client/src/client_sheets")
ENDIF(NOT WITH_RYZOM_CLIENT)
LINK_DIRECTORIES(${LINK_DIRECTORIES} ${CMAKE_LIBRARY_DIR})
FILE(GLOB SRC src/*.cpp src/*.h)
ADD_EXECUTABLE(render_service ${SRC}
${CMAKE_SOURCE_DIR}/ryzom/client/src/color_slot_manager.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/color_slot_manager.h
${CMAKE_SOURCE_DIR}/ryzom/client/src/gabarit.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/gabarit.h
${CMAKE_SOURCE_DIR}/ryzom/client/src/sheet_manager.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/sheet_manager.h
)
TARGET_LINK_LIBRARIES(render_service
nel3d
nelnet
ryzom_clientsheets
ryzom_gameshare
)
NL_DEFAULT_PROPS(render_service "Ryzom, Tools: Render Service")
NL_ADD_RUNTIME_FLAGS(render_service)
IF(WITH_PCH)
target_precompile_headers(render_service
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/src/stdpch.cpp
)
ENDIF()
INSTALL(TARGETS render_service RUNTIME DESTINATION bin COMPONENT tools)