2022-11-07 08:12:35 +00:00
|
|
|
set(DCHATSERVER_SOURCES
|
2023-11-18 11:55:12 +00:00
|
|
|
"ChatIgnoreList.cpp"
|
2022-11-07 08:12:35 +00:00
|
|
|
"ChatPacketHandler.cpp"
|
|
|
|
"PlayerContainer.cpp"
|
|
|
|
)
|
|
|
|
|
2024-12-04 18:53:04 +00:00
|
|
|
|
|
|
|
if (WIN32 AND LOCAL_SERVER)
|
|
|
|
add_library(ChatServer SHARED "ChatServer.cpp")
|
|
|
|
else()
|
|
|
|
add_executable(ChatServer "ChatServer.cpp")
|
|
|
|
endif()
|
|
|
|
|
2024-03-06 02:13:24 +00:00
|
|
|
target_include_directories(ChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dChatFilter")
|
2023-12-31 06:26:49 +00:00
|
|
|
add_compile_definitions(ChatServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
|
2022-11-07 08:12:35 +00:00
|
|
|
|
2024-03-06 02:13:24 +00:00
|
|
|
add_library(dChatServer ${DCHATSERVER_SOURCES})
|
|
|
|
target_include_directories(dChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dServer")
|
|
|
|
|
2022-11-07 08:12:35 +00:00
|
|
|
target_link_libraries(dChatServer ${COMMON_LIBRARIES} dChatFilter)
|
2024-01-06 05:32:09 +00:00
|
|
|
target_link_libraries(ChatServer ${COMMON_LIBRARIES} dChatFilter dChatServer dServer)
|
|
|
|
|