4
4
# http://www.boost.org/LICENSE_1_0.txt)
5
5
6
6
include_directories (${CPP-NETLIB_SOURCE_DIR})
7
- find_package ( Boost 1.41.0 COMPONENTS program_options system regex date_time thread filesystem )
7
+ find_package ( Boost 1.41.0 COMPONENTS program_options system regex date_time thread filesystem log log_setup )
8
8
find_package ( OpenSSL )
9
9
include_directories (${OPENSSL_INCLUDE_DIR} )
10
10
find_package ( Threads )
@@ -14,20 +14,27 @@ set(Boost_USE_MULTITHREADED ON)
14
14
if (Boost_FOUND)
15
15
add_executable (http_client http_client.cpp)
16
16
add_executable (simple_wget simple_wget.cpp)
17
+ add_executable (hello_world_client http/hello_world_client.cpp)
17
18
add_executable (hello_world_server http/hello_world_server.cpp)
19
+ add_executable (hello_world_server_log http/hello_world_server_log.cpp)
18
20
add_executable (fileserver http/fileserver.cpp)
19
21
add_executable (uri uri.cpp)
20
22
add_dependencies (http_client cppnetlib-uri-parsers)
23
+ add_dependencies (hello_world_client cppnetlib-uri-parsers)
21
24
add_dependencies (simple_wget cppnetlib-uri-parsers)
22
25
add_dependencies (uri cppnetlib-uri-parsers)
23
26
target_link_libraries (http_client ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
24
27
target_link_libraries (simple_wget ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
28
+ target_link_libraries (hello_world_client ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
25
29
target_link_libraries (hello_world_server ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} )
30
+ target_link_libraries (hello_world_server_log ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} )
26
31
target_link_libraries (fileserver ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)
27
32
target_link_libraries (uri cppnetlib-uri-parsers)
28
33
set_target_properties (http_client PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
29
34
set_target_properties (simple_wget PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
35
+ set_target_properties (hello_world_client PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
30
36
set_target_properties (hello_world_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
37
+ set_target_properties (hello_world_server_log PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
31
38
set_target_properties (fileserver PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
32
39
set_target_properties (uri PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
33
40
endif ()
0 commit comments