@@ -74,21 +74,21 @@ if (Boost_FOUND)
74
74
${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test} )
75
75
endforeach (test )
76
76
77
- # set ( SERVER_API_TESTS
78
- # server_constructor_test
79
- # server_async_run_stop_concurrency
80
- # )
81
- # foreach ( test ${SERVER_API_TESTS} )
82
- # if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
83
- # set_source_files_properties(${test}.cpp
84
- # PROPERTIES COMPILE_FLAGS "-Wall")
85
- # endif()
86
- # add_executable(cpp-netlib-http-${test} ${test}.cpp)
87
- # target_link_libraries(cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)
88
- # set_target_properties(cpp-netlib-http-${test}
89
- # PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests)
90
- # add_test(cpp-netlib-http-${test}
91
- # ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test})
92
- # endforeach (test)
77
+ set ( SERVER_API_TESTS
78
+ server_constructor_test
79
+ server_async_run_stop_concurrency
80
+ )
81
+ foreach ( test ${SERVER_API_TESTS} )
82
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU )
83
+ set_source_files_properties (${test} .cpp
84
+ PROPERTIES COMPILE_FLAGS "-Wall" )
85
+ endif ()
86
+ add_executable (cpp-netlib-http-${test} ${test} .cpp )
87
+ target_link_libraries (cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers )
88
+ set_target_properties (cpp-netlib-http-${test}
89
+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests )
90
+ add_test (cpp-netlib-http-${test}
91
+ ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test} )
92
+ endforeach (test )
93
93
94
94
endif ()
0 commit comments