Kylin/HttpProxy/CMakeLists.txt
2023-12-29 19:10:38 +08:00

23 lines
630 B
CMake

find_package(Boost COMPONENTS url REQUIRED)
add_library(HttpProxy
NetworkUtility.h NetworkUtility.cpp
ProxyHttpSession.h ProxyHttpSession.cpp
ProxyListener.h ProxyListener.cpp
ProxyTcpSession.h ProxyTcpSession.cpp
TemplateMatchs.h TemplateMatchs.cpp
TemplateSegmentRule.h TemplateSegmentRule.cpp
UrlRouter.h UrlRouter.cpp
UrlRouterPrivate.h UrlRouterPrivate.cpp
)
target_include_directories(HttpProxy
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE ${OpenSSL_INCLUDE_DIR}
)
target_link_libraries(HttpProxy
PUBLIC ${Boost_LIBRARIES}
PUBLIC Universal
PRIVATE ${OpenSSL_LIBRARY}
)