23 lines
630 B
CMake
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}
|
|
) |