File tree Expand file tree Collapse file tree 4 files changed +10
-22
lines changed Expand file tree Collapse file tree 4 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 5
5
6
6
cmake_minimum_required (VERSION 2.6 )
7
7
project (CPP-NETLIB )
8
- find_package ( Boost 1.41.0 )
8
+ find_package ( Boost 1.43.0 REQUIRED unit_test_framework system regex date_time thread filesystem )
9
+ find_package ( OpenSSL )
10
+ find_package ( Threads )
11
+ set (Boost_USE_STATIC_LIBS ON )
12
+ set (Boost_USE_MULTITHREADED ON )
9
13
set (CMAKE_VERBOSE_MAKEFILE true )
10
14
11
15
if (CMAKE_BUILD_TYPE MATCHES Debug )
Original file line number Diff line number Diff line change 4
4
# http://www.boost.org/LICENSE_1_0.txt)
5
5
6
6
include_directories (${CPP-NETLIB_SOURCE_DIR} )
7
- find_package ( Boost 1.41.0 COMPONENTS program_options system regex date_time thread filesystem )
8
- find_package ( OpenSSL )
9
7
include_directories (${OPENSSL_INCLUDE_DIR} )
10
- find_package ( Threads )
11
- set (Boost_USE_STATIC_LIBS ON )
12
- set (Boost_USE_MULTITHREADED ON )
13
8
14
9
if (Boost_FOUND )
15
10
add_executable (http_client http_client.cpp )
Original file line number Diff line number Diff line change 4
4
# http://www.boost.org/LICENSE_1_0.txt)
5
5
6
6
include_directories (${CPP-NETLIB_SOURCE_DIR} )
7
- find_package ( Boost 1.41.0 COMPONENTS unit_test_framework system regex date_time thread filesystem )
8
- find_package ( OpenSSL )
9
- find_package ( Threads )
10
- set (Boost_USE_STATIC_LIBS ON )
11
- set (Boost_USE_MULTITHREADED ON )
12
7
13
8
add_subdirectory (uri )
14
9
add_subdirectory (http )
@@ -24,17 +19,17 @@ if (Boost_FOUND)
24
19
set_source_files_properties (${test} .cpp
25
20
PROPERTIES COMPILE_FLAGS "-Wall" )
26
21
add_executable (cpp-netlib-${test} ${test} .cpp )
27
- add_dependencies (cpp-netlib-${test} cppnetlib-uri-parsers )
22
+ add_dependencies (cpp-netlib-${test} cppnetlib-uri-parsers )
28
23
29
- # add_dependencies(cpp-netlib-${test} cppnetlib-uri-parsers)
30
- # target_link_libraries(cpp-netlib-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri-parsers)
31
- target_link_libraries (cpp-netlib-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri-parsers )
24
+ target_link_libraries (cpp-netlib-${test}
25
+ ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri-parsers )
32
26
if (OPENSSL_FOUND )
33
27
target_link_libraries (cpp-netlib-${test} ${OPENSSL_LIBRARIES} )
34
28
endif ()
35
29
set_target_properties (cpp-netlib-${test}
36
30
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests )
37
- add_test (cpp-netlib-${test} ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-${test} )
31
+ add_test (cpp-netlib-${test}
32
+ ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-${test} )
38
33
endforeach (test )
39
34
40
35
endif ()
Original file line number Diff line number Diff line change 5
5
# http://www.boost.org/LICENSE_1_0.txt)
6
6
7
7
include_directories (${CPP-NETLIB_SOURCE_DIR} )
8
- find_package ( Boost 1.43.0 REQUIRED unit_test_framework system regex thread filesystem )
9
- find_package ( OpenSSL )
10
8
11
9
if (OPENSSL_FOUND )
12
10
include_directories ( ${OPENSSL_INCLUDE_DIR} )
13
11
add_definitions (-DBOOST_NETWORK_ENABLE_HTTPS )
14
12
endif ()
15
13
16
- find_package ( Threads )
17
- set (Boost_USE_STATIC_LIBS ON )
18
- set (Boost_USE_MULTITHREADED ON )
19
-
20
14
if (Boost_FOUND )
21
15
set ( TESTS
22
16
client_constructor_test
You can’t perform that action at this time.
0 commit comments