@@ -15,14 +15,14 @@ set(Boost_USE_STATIC_LIBS ON)
1515set (Boost_USE_MULTITHREADEDON )
1616
1717if (Boost_FOUND)
18- # set_source_files_properties(
19- # http_incremental_parser.cpp hello_world.cpp
20- # http_1_0_test.cpp http_1_1_test.cpp
21- # http_localhost_tests.cpp https_localhost_tests.cpp
22- # message_test.cpp http_message_twst.cpp
23- # message_transform_test.cpp url_test.cpp
24- # PROPERTIES COMPILE_FLAGS "-Wall -Werror "
25- # )
18+ set_source_files_properties (
19+ http_incremental_parser.cpp hello_world.cpp
20+ http_1_0_test.cpp http_1_1_test.cpp
21+ http_localhost_tests.cpp https_localhost_tests.cpp
22+ message_test.cpp http_message_twst.cpp
23+ message_transform_test.cpp url_test.cpp
24+ PROPERTIESCOMPILE_FLAGS "-Wall"
25+ )
2626 add_executable (cpp-netlib-http_incremental_parser http_incremental_parser.cpp)
2727 add_executable (cpp-netlib-hello_world hello_world.cpp)
2828 add_executable (cpp-netlib-http_1_0_test http_1_0_test.cpp)
@@ -33,6 +33,7 @@ if (Boost_FOUND)
3333 add_executable (cpp-netlib-http_message_test http_message_test.cpp)
3434 add_executable (cpp-netlib-message_transform_test message_transform_test.cpp)
3535 add_executable (cpp-netlib-url_test url_test.cpp)
36+ add_executable (cpp-netlib-utils_thread_pool utils_thread_pool.cpp)
3637 target_link_libraries (cpp-netlib-http_incremental_parser${CMAKE_THREAD_LIBS_INIT} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} )
3738 target_link_libraries (cpp-netlib-hello_world${Boost_SYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_DATE_TIME_LIBRARY} ${Boost_THREAD_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} )
3839 target_link_libraries (cpp-netlib-http_1_0_test${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
@@ -43,6 +44,7 @@ if (Boost_FOUND)
4344 target_link_libraries (cpp-netlib-http_localhost_tests${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
4445 target_link_libraries (cpp-netlib-https_localhost_tests${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
4546 target_link_libraries (cpp-netlib-url_test${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
47+ target_link_libraries (cpp-netlib-utils_thread_pool${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
4648 if (OPENSSL_FOUND)
4749 target_link_libraries (cpp-netlib-hello_world${OPENSSL_LIBRARIES} )
4850 target_link_libraries (cpp-netlib-http_1_0_test${OPENSSL_LIBRARIES} )
@@ -54,7 +56,19 @@ if (Boost_FOUND)
5456 target_link_libraries (cpp-netlib-https_localhost_tests${OPENSSL_LIBRARIES} )
5557 target_link_libraries (cpp-netlib-url_test${OPENSSL_LIBRARIES} )
5658 endif ()
57- set_target_properties (cpp-netlib-http_incremental_parser cpp-netlib-hello_world cpp-netlib-http_1_0_test cpp-netlib-http_1_1_test cpp-netlib-message_test cpp-netlib-http_message_test cpp-netlib-message_transform_test cpp-netlib-http_localhost_tests cpp-netlib-https_localhost_tests cpp-netlib-url_test PROPERTIESRUNTIME_OUTPUT_DIRECTORY ../../../build /tests)
59+ set_target_properties (
60+ cpp-netlib-http_incremental_parser
61+ cpp-netlib-hello_world
62+ cpp-netlib-http_1_0_test
63+ cpp-netlib-http_1_1_test
64+ cpp-netlib-message_test
65+ cpp-netlib-http_message_test
66+ cpp-netlib-message_transform_test
67+ cpp-netlib-http_localhost_tests
68+ cpp-netlib-https_localhost_tests
69+ cpp-netlib-url_test
70+ cpp-netlib-utils_thread_pool
71+ PROPERTIESRUNTIME_OUTPUT_DIRECTORY ../../../build /tests)
5872 add_test (cpp-netlib-http_incremental_parser ../../../build /tests/cpp-netlib-http_incremental_parser)
5973 add_test (cpp-netlib-hello_world python httplib_acceptance.py ../../../build /tests/cpp-netlib-hello_world ../../../build /tests/cpp-netlib-hello_world.passed)
6074 add_test (cpp-netlib-http_1_0_test ../../../build /tests/cpp-netlib-http_1_0_test)