forked from rbeeli/websocketclient-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (39 loc) · 1.35 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
find_package(asio CONFIG REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(simdutf CONFIG REQUIRED)
find_package(ZLIB REQUIRED)
# --------------------------------------
add_executable(scratch_asio_http asio_http.cpp)
target_link_libraries(scratch_asio_http PRIVATE
OpenSSL::SSL
OpenSSL::Crypto
ZLIB::ZLIB
simdutf::simdutf
asio::asio
websocketclient)
target_compile_definitions(scratch_asio_http PRIVATE
ASIO_STANDALONE=1
ASIO_NO_TYPEID=1)
# --------------------------------------
add_executable(scratch_asio_seq_strand asio_seq_strand.cpp)
target_link_libraries(scratch_asio_seq_strand PRIVATE
OpenSSL::SSL
OpenSSL::Crypto
asio::asio)
target_compile_definitions(scratch_asio_seq_strand PRIVATE
ASIO_STANDALONE=1
ASIO_NO_TYPEID=1)
# --------------------------------------
add_executable(scratch_openssl openssl.cpp)
target_link_libraries(scratch_openssl PRIVATE OpenSSL::SSL OpenSSL::Crypto)
# --------------------------------------
# file(GLOB_RECURSE SOURCES_COROIO "../coroio/*.cpp")
# add_executable(test_coroio_bench test_coroio_bench.cpp ${SOURCES_COROIO})
# target_include_directories(test_coroio_bench PRIVATE "../")
# target_link_libraries(test_coroio_bench PRIVATE
# OpenSSL::SSL
# OpenSSL::Crypto
# ZLIB::ZLIB
# simdutf::simdutf
# websocketclient)
# --------------------------------------