Kylin/HttpProxy/CMakeLists.txt

33 lines
826 B
CMake
Raw Normal View History

2023-12-30 22:09:18 +08:00
project(HttpProxy
2024-01-14 17:54:26 +08:00
DESCRIPTION "router api is copy of boost_1_84_0/libs/url/example/router
root_certificates.hpp is copy of boost_1_84_0/libs/beast/example/common/root_certificates.hpp"
2023-12-30 22:09:18 +08:00
)
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
2024-01-14 17:54:26 +08:00
root_certificates.hpp
router.hpp
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}
2024-01-14 17:54:26 +08:00
PRIVATE ${OPENSSL_INCLUDE_DIR}
)
target_link_directories(HttpProxy
PUBLIC ${OPENSSL_LIBRARY_DIRS}
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
2024-01-14 17:54:26 +08:00
PRIVATE ${OPENSSL_LIBRARIES}
)