2023-12-30 22:09:18 +08:00
|
|
|
project(HttpProxy
|
|
|
|
DESCRIPTION "router api is copy of boost_1_84_0/libs/url/example/router"
|
|
|
|
)
|
|
|
|
|
2023-07-25 10:40:14 +08:00
|
|
|
find_package(Boost COMPONENTS url REQUIRED)
|
|
|
|
|
2023-07-21 11:53:19 +08:00
|
|
|
add_library(HttpProxy
|
|
|
|
NetworkUtility.h NetworkUtility.cpp
|
2023-07-21 15:28:59 +08:00
|
|
|
ProxyHttpSession.h ProxyHttpSession.cpp
|
|
|
|
ProxyListener.h ProxyListener.cpp
|
|
|
|
ProxyTcpSession.h ProxyTcpSession.cpp
|
2023-12-30 22:09:18 +08:00
|
|
|
|
|
|
|
detail/impl/router.cpp
|
|
|
|
impl/matches.cpp
|
2023-07-21 11:53:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(HttpProxy
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
2023-12-29 19:10:38 +08:00
|
|
|
PRIVATE ${OpenSSL_INCLUDE_DIR}
|
2023-07-21 11:53:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(HttpProxy
|
2023-07-25 10:40:14 +08:00
|
|
|
PUBLIC ${Boost_LIBRARIES}
|
2023-07-21 11:53:19 +08:00
|
|
|
PUBLIC Universal
|
2023-07-25 10:40:14 +08:00
|
|
|
PRIVATE ${OpenSSL_LIBRARY}
|
2023-07-21 11:53:19 +08:00
|
|
|
)
|