|
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_frameworksystemregex thread filesystem ) |
| 8 | +find_package( Boost 1.45.0 REQUIRED unit_test_frameworksystemregex thread filesystem ) |
9 | 9 | find_package( OpenSSL ) |
10 | 10 |
|
11 | 11 | if (OPENSSL_FOUND) |
@@ -86,24 +86,24 @@ if (Boost_FOUND) |
86 | 86 | math (EXPR PORT"${PORT} + 1") |
87 | 87 | endforeach (test) |
88 | 88 |
|
89 | | - set ( INLINED_TESTS |
90 | | - client_include_inlined |
91 | | - server_include_inlined |
92 | | - ) |
93 | | - foreach (test${INLINED_TESTS} ) |
94 | | - if (${CMAKE_CXX_COMPILER_ID}MATCHES GNU) |
95 | | - set_source_files_properties(${test}.cpp |
96 | | - PROPERTIESCOMPILE_FLAGS"-Wall") |
97 | | - endif() |
98 | | - add_executable(cpp-netlib-http-inlined-${test}${test}.cpp) |
99 | | - target_link_libraries(cpp-netlib-http-inlined-${test}${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT}) |
100 | | - if (OPENSSL_FOUND) |
101 | | - target_link_libraries(cpp-netlib-http-inlined-${test}${OPENSSL_LIBRARIES}) |
102 | | - endif() |
103 | | - set_target_properties(cpp-netlib-http-inlined-${test} |
104 | | - PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests) |
105 | | - add_test(cpp-netlib-http-inlined-${test} |
106 | | - ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-inlined-${test}) |
107 | | - endforeach (test) |
| 89 | +#set ( INLINED_TESTS |
| 90 | +# client_include_inlined |
| 91 | +# server_include_inlined |
| 92 | +# ) |
| 93 | +#foreach ( test ${INLINED_TESTS} ) |
| 94 | +# if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU) |
| 95 | +# set_source_files_properties(${test}.cpp |
| 96 | +# PROPERTIES COMPILE_FLAGS "-Wall") |
| 97 | +# endif() |
| 98 | +# add_executable(cpp-netlib-http-inlined-${test} ${test}.cpp) |
| 99 | +# target_link_libraries(cpp-netlib-http-inlined-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) |
| 100 | +# if (OPENSSL_FOUND) |
| 101 | +# target_link_libraries(cpp-netlib-http-inlined-${test} ${OPENSSL_LIBRARIES}) |
| 102 | +# endif() |
| 103 | +# set_target_properties(cpp-netlib-http-inlined-${test} |
| 104 | +# PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests) |
| 105 | +# add_test(cpp-netlib-http-inlined-${test} |
| 106 | +# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-inlined-${test}) |
| 107 | +#endforeach (test) |
108 | 108 |
|
109 | 109 | endif() |