@@ -15,14 +15,14 @@ set(Boost_USE_STATIC_LIBS ON)
15
15
set (Boost_USE_MULTITHREADED ON )
16
16
17
17
if (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
+ PROPERTIES COMPILE_FLAGS "-Wall"
25
+ )
26
26
add_executable (cpp-netlib-http_incremental_parser http_incremental_parser.cpp )
27
27
add_executable (cpp-netlib-hello_world hello_world.cpp )
28
28
add_executable (cpp-netlib-http_1_0_test http_1_0_test.cpp )
@@ -33,6 +33,7 @@ if (Boost_FOUND)
33
33
add_executable (cpp-netlib-http_message_test http_message_test.cpp )
34
34
add_executable (cpp-netlib-message_transform_test message_transform_test.cpp )
35
35
add_executable (cpp-netlib-url_test url_test.cpp )
36
+ add_executable (cpp-netlib-utils_thread_pool utils_thread_pool.cpp )
36
37
target_link_libraries (cpp-netlib-http_incremental_parser ${CMAKE_THREAD_LIBS_INIT} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} )
37
38
target_link_libraries (cpp-netlib-hello_world ${Boost_SYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_DATE_TIME_LIBRARY} ${Boost_THREAD_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} )
38
39
target_link_libraries (cpp-netlib-http_1_0_test ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
@@ -43,6 +44,7 @@ if (Boost_FOUND)
43
44
target_link_libraries (cpp-netlib-http_localhost_tests ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
44
45
target_link_libraries (cpp-netlib-https_localhost_tests ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
45
46
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} )
46
48
if (OPENSSL_FOUND )
47
49
target_link_libraries (cpp-netlib-hello_world ${OPENSSL_LIBRARIES} )
48
50
target_link_libraries (cpp-netlib-http_1_0_test ${OPENSSL_LIBRARIES} )
@@ -54,7 +56,19 @@ if (Boost_FOUND)
54
56
target_link_libraries (cpp-netlib-https_localhost_tests ${OPENSSL_LIBRARIES} )
55
57
target_link_libraries (cpp-netlib-url_test ${OPENSSL_LIBRARIES} )
56
58
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 PROPERTIES RUNTIME_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
+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY ../../../build/tests )
58
72
add_test (cpp-netlib-http_incremental_parser ../../../build/tests/cpp-netlib-http_incremental_parser )
59
73
add_test (cpp-netlib-hello_world python httplib_acceptance.py ../../../build/tests/cpp-netlib-hello_world ../../../build/tests/cpp-netlib-hello_world.passed )
60
74
add_test (cpp-netlib-http_1_0_test ../../../build/tests/cpp-netlib-http_1_0_test )
0 commit comments