Older/Server/CMakeLists.txt
2024-01-24 23:19:53 +08:00

28 lines
801 B
CMake

find_package(Boost COMPONENTS program_options json REQUIRED)
add_subdirectory(ChatRoom)
add_subdirectory(Database)
add_subdirectory(WebRTC)
add_executable(Server main.cpp
Application.h Application.cpp
HttpSession.h HttpSession.cpp
Listener.h Listener.cpp
ResponseUtility.h ResponseUtility.cpp
ServiceLogic.h ServiceLogic.inl ServiceLogic.cpp
ServiceManager.h
UdpServer.h UdpServer.cpp
WeChatContext/CorporationContext.h WeChatContext/CorporationContext.cpp
WeChatContext/WeChatContext.h WeChatContext/WeChatContext.cpp
WeChatContext/WeChatSession.h WeChatContext/WeChatSession.cpp
)
target_link_libraries(Server
PRIVATE HttpProxy
PRIVATE Database
PRIVATE ${Boost_LIBRARIES}
)
set_target_properties(Server PROPERTIES
OUTPUT_NAME HttpServer
)