DarkflameServer/dChatServer/CMakeLists.txt

23 lines
688 B
CMake
Raw Permalink Normal View History

set(DCHATSERVER_SOURCES
"ChatIgnoreList.cpp"
"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()
target_include_directories(ChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dChatFilter")
add_compile_definitions(ChatServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
add_library(dChatServer ${DCHATSERVER_SOURCES})
target_include_directories(dChatServer PRIVATE "${PROJECT_SOURCE_DIR}/dServer")
target_link_libraries(dChatServer ${COMMON_LIBRARIES} dChatFilter)
target_link_libraries(ChatServer ${COMMON_LIBRARIES} dChatFilter dChatServer dServer)