mirror of
https://github.com/boostorg/beast.git
synced 2026-03-06 22:14:31 +01:00
33 lines
726 B
CMake
33 lines
726 B
CMake
# Part of Beast
|
|
|
|
GroupSources(extras/beast extras)
|
|
GroupSources(include/beast beast)
|
|
|
|
GroupSources(examples/ssl "/")
|
|
|
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
add_executable (http-ssl-example
|
|
${BEAST_INCLUDES}
|
|
${EXTRAS_INCLUDES}
|
|
http_ssl_example.cpp
|
|
)
|
|
|
|
target_link_libraries(http-ssl-example ${OPENSSL_LIBRARIES})
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(http-ssl-example ${Boost_LIBRARIES} Threads::Threads)
|
|
endif()
|
|
|
|
add_executable (websocket-ssl-example
|
|
${BEAST_INCLUDES}
|
|
${EXTRAS_INCLUDES}
|
|
websocket_ssl_example.cpp
|
|
)
|
|
|
|
target_link_libraries(websocket-ssl-example ${OPENSSL_LIBRARIES})
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(websocket-ssl-example ${Boost_LIBRARIES} Threads::Threads)
|
|
endif()
|