Older/Server/CMakeLists.txt

38 lines
972 B
CMake
Raw Normal View History

2023-07-21 16:17:01 +08:00
find_package(Boost COMPONENTS program_options json REQUIRED)
2023-12-30 01:19:36 +08:00
add_library(Database
Database.h Database.cpp
)
target_include_directories(Database
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(Database
PUBLIC sqlite3
PUBLIC Universal
)
2023-07-21 16:17:01 +08:00
add_executable(Server main.cpp
HttpSession.h HttpSession.cpp
Listener.h Listener.cpp
ResponseUtility.h ResponseUtility.cpp
ServiceLogic.h ServiceLogic.inl ServiceLogic.cpp
ServiceManager.h
SharedState.h SharedState.cpp
UdpServer.h UdpServer.cpp
WebsocketSession.h WebsocketSession.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
2023-12-30 01:19:36 +08:00
PRIVATE Database
2023-07-21 16:17:01 +08:00
PRIVATE ${Boost_LIBRARIES}
)
set_target_properties(Server PROPERTIES
OUTPUT_NAME HttpServer
)