Older/Server/CMakeLists.txt
luocai 7a87c76543
All checks were successful
Deploy / PullDocker (push) Successful in 11s
Deploy / Build (push) Successful in 1m14s
add media server code.
2024-09-23 19:01:51 +08:00

39 lines
1.0 KiB
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
MediaServer.h MediaServer.cpp
ResponseUtility.h ResponseUtility.cpp
ServiceLogic.h ServiceLogic.inl ServiceLogic.cpp
ServiceManager.h
SystemUsage.h SystemUsage.cpp
UdpServer.h UdpServer.cpp
WeChatContext/CorporationContext.h WeChatContext/CorporationContext.cpp
WeChatContext/WeChatContext.h WeChatContext/WeChatContext.cpp
WeChatContext/WeChatSession.h WeChatContext/WeChatSession.cpp
)
target_include_directories(Server
PRIVATE /opt/Libraries/ZLMediaKit/include
)
target_link_directories(Server
PRIVATE /opt/Libraries/ZLMediaKit/lib
)
target_link_libraries(Server
PRIVATE HttpProxy
PRIVATE Database
PRIVATE mk_api
PRIVATE ${Boost_LIBRARIES}
)
set_target_properties(Server PROPERTIES
OUTPUT_NAME HttpServer
)