Kylin/HttpProxy/CMakeLists.txt

26 lines
613 B
CMake

project(HttpProxy
DESCRIPTION "router api is copy of boost_1_84_0/libs/url/example/router"
)
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
detail/impl/router.cpp
impl/matches.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}
)