File tree Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
16
16
add_definitions (-DBOOST_NETWORK_DEBUG )
17
17
endif ()
18
18
19
- if (OpenSSL_FOUND )
19
+ if (OPENSSL_FOUND )
20
20
add_definitions (-DBOOST_NETWORK_ENABLE_HTTPS )
21
21
endif ()
22
22
Original file line number Diff line number Diff line change 6
6
include_directories (${CPP-NETLIB_SOURCE_DIR} )
7
7
include_directories (${OPENSSL_INCLUDE_DIR} )
8
8
9
- if (OPENSSL_FOUND )
10
- add_definitions (-DBOOST_NETWORK_ENABLE_HTTPS )
11
- endif ()
12
-
13
9
add_executable (http_client http_client.cpp )
14
10
add_executable (simple_wget simple_wget.cpp )
15
11
add_executable (hello_world_server http/hello_world_server.cpp )
16
12
add_executable (fileserver http/fileserver.cpp )
17
13
add_executable (uri uri.cpp )
18
- add_dependencies (http_client cppnetlib-uri-parsers )
19
- add_dependencies (simple_wget cppnetlib-uri-parsers )
14
+ add_dependencies (http_client cppnetlib-uri-parsers cppnetlib-client-connections )
15
+ add_dependencies (simple_wget cppnetlib-uri-parsers cppnetlib-client-connections )
20
16
add_dependencies (uri cppnetlib-uri-parsers )
21
17
set (BOOST_CLIENT_LIBS
22
18
${Boost_PROGRAM_OPTIONS_LIBRARY}
@@ -32,13 +28,15 @@ target_link_libraries(http_client
32
28
${BOOST_CLIENT_LIBS}
33
29
${CMAKE_THREAD_LIBS_INIT}
34
30
${OPENSSL_LIBRARIES}
35
- cppnetlib-uri-parsers )
31
+ cppnetlib-uri-parsers
32
+ cppnetlib-client-connections )
36
33
37
34
target_link_libraries (simple_wget
38
35
${BOOST_CLIENT_LIBS}
39
36
${CMAKE_THREAD_LIBS_INIT}
40
37
${OPENSSL_LIBRARIES}
41
- cppnetlib-uri-parsers )
38
+ cppnetlib-uri-parsers
39
+ cppnetlib-client-connections )
42
40
43
41
target_link_libraries (hello_world_server
44
42
${BOOST_SERVER_LIBS}
Original file line number Diff line number Diff line change 8
8
9
9
include_directories (${CPP-NETLIB_SOURCE_DIR} )
10
10
11
- if (OPENSSL_FOUND )
12
- add_definitions (-DBOOST_NETWORK_ENABLE_HTTPS )
13
- endif ()
14
-
15
11
set (CPP-NETLIB_URI_SRCS uri/parse.cpp )
16
12
add_library (cppnetlib-uri-parsers ${CPP-NETLIB_URI_SRCS} )
17
13
Original file line number Diff line number Diff line change @@ -29,8 +29,13 @@ if (Boost_FOUND)
29
29
PROPERTIES COMPILE_FLAGS "-Wall" )
30
30
endif ()
31
31
add_executable (cpp-netlib-http-${test} ${test} .cpp )
32
- add_dependencies (cpp-netlib-http-${test} cppnetlib-uri-parsers )
33
- target_link_libraries (cpp-netlib-http-${test} ${BOOST_LIBS} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri-parsers )
32
+ add_dependencies (cpp-netlib-http-${test}
33
+ cppnetlib-uri-parsers
34
+ cppnetlib-client-connections )
35
+ target_link_libraries (cpp-netlib-http-${test}
36
+ ${BOOST_LIBS} ${CMAKE_THREAD_LIBS_INIT}
37
+ cppnetlib-uri-parsers
38
+ cppnetlib-client-connections )
34
39
if (OPENSSL_FOUND )
35
40
target_link_libraries (cpp-netlib-http-${test} ${OPENSSL_LIBRARIES} )
36
41
endif ()
You can’t perform that action at this time.
0 commit comments