44# http://www.boost.org/LICENSE_1_0.txt)
55
66include_directories (${CPP-NETLIB_SOURCE_DIR})
7- find_package ( Boost 1.41.0 COMPONENTS program_optionssystem regex date_time thread filesystemlog log_setup )
7+ find_package ( Boost 1.41.0 COMPONENTS program_optionssystem regex date_time thread filesystem )
88find_package ( OpenSSL )
99include_directories (${OPENSSL_INCLUDE_DIR} )
1010find_package ( Threads )
@@ -14,27 +14,20 @@ set(Boost_USE_MULTITHREADED ON)
1414if (Boost_FOUND)
1515 add_executable (http_client http_client.cpp)
1616 add_executable (simple_wget simple_wget.cpp)
17- add_executable (hello_world_client http/hello_world_client.cpp)
1817 add_executable (hello_world_server http/hello_world_server.cpp)
19- add_executable (hello_world_server_log http/hello_world_server_log.cpp)
2018 add_executable (fileserver http/fileserver.cpp)
2119 add_executable (uri uri.cpp)
2220 add_dependencies (http_client cppnetlib-uri-parsers)
23- add_dependencies (hello_world_client cppnetlib-uri-parsers)
2421 add_dependencies (simple_wget cppnetlib-uri-parsers)
2522 add_dependencies (uri cppnetlib-uri-parsers)
2623 target_link_libraries (http_client${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
2724 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)
2925 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} )
3126 target_link_libraries (fileserver${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)
3227 target_link_libraries (uri cppnetlib-uri-parsers)
3328 set_target_properties (http_client PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
3429 set_target_properties (simple_wget PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
35- set_target_properties (hello_world_client PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
3630 set_target_properties (hello_world_server PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
37- set_target_properties (hello_world_server_log PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
3831 set_target_properties (fileserver PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
3932 set_target_properties (uri PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
4033endif ()