File tree Expand file tree Collapse file tree 2 files changed +20
-27
lines changed Expand file tree Collapse file tree 2 files changed +20
-27
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,8 @@ if (Boost_FOUND)
29
29
PROPERTIES COMPILE_FLAGS "-Wall" )
30
30
endif ()
31
31
add_executable (cpp-netlib-http-${test} ${test} .cpp )
32
- <<<<<<< HEAD
33
32
add_dependencies (cpp-netlib-http-${test} cppnetlib-uri-parsers )
34
33
target_link_libraries (cpp-netlib-http-${test} ${BOOST_LIBS} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri-parsers )
35
- =======
36
- add_dependencies (cpp-netlib-http-${test} cppnetlib-uri )
37
- target_link_libraries (cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri cppnetlib-client-connections )
38
- >>>>>>> cd5b00337224ee166982f4ce954d2d55b906d7da
39
34
if (OPENSSL_FOUND )
40
35
target_link_libraries (cpp-netlib-http-${test} ${OPENSSL_LIBRARIES} )
41
36
endif ()
Original file line number Diff line number Diff line change 6
6
include_directories (${CPP-NETLIB_SOURCE_DIR} )
7
7
8
8
if (Boost_FOUND )
9
- set (
10
- TESTS
11
- url_test
12
- url_http_test
13
- url_mailto_test
14
- )
15
- foreach (test ${TESTS} )
16
- set_source_files_properties (${test} .cpp
17
- PROPERTIES COMPILE_FLAGS "-Wall" )
18
- add_executable (cpp-netlib-${test} ${test} .cpp )
19
- add_dependencies (cpp-netlib-${test} cppnetlib-uri-parsers )
20
- target_link_libraries (cpp-netlib-${test}
21
- ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri-parsers )
22
- if (OPENSSL_FOUND )
23
- target_link_libraries (cpp-netlib-${test} ${OPENSSL_LIBRARIES} )
24
- endif ()
25
- set_target_properties (cpp-netlib-${test}
26
- PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests )
27
- add_test (cpp-netlib-${test}
28
- ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-${test} )
29
- endforeach (test )
30
- endif ()
9
+ set (
10
+ TESTS
11
+ url_test
12
+ url_encoding_test
13
+ url_builder_test
14
+ )
15
+ foreach (test ${TESTS} )
16
+ set_source_files_properties (${test} .cpp
17
+ PROPERTIES COMPILE_FLAGS "-Wall" )
18
+ add_executable (cpp-netlib-${test} ${test} .cpp )
19
+ add_dependencies (cpp-netlib-${test} cppnetlib-uri )
20
+ target_link_libraries (cpp-netlib-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri )
21
+ if (OPENSSL_FOUND )
22
+ target_link_libraries (cpp-netlib-${test} ${OPENSSL_LIBRARIES} )
23
+ endif ()
24
+ set_target_properties (cpp-netlib-${test}
25
+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests )
26
+ add_test (cpp-netlib-${test} ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-${test} )
27
+ endforeach (test )
28
+ endif (Boost_FOUND )
You can’t perform that action at this time.
0 commit comments