|
5 | 5 | # http://www.boost.org/LICENSE_1_0.txt) |
6 | 6 |
|
7 | 7 | include_directories(${CPP-NETLIB_SOURCE_DIR}) |
8 | | -find_package( PythonInterp ) |
9 | 8 |
|
10 | 9 | if (OPENSSL_FOUND) |
11 | 10 | include_directories(${OPENSSL_INCLUDE_DIR} ) |
@@ -60,54 +59,4 @@ if (Boost_FOUND) |
60 | 59 | ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test}) |
61 | 60 | endforeach (test) |
62 | 61 |
|
63 | | -# if ( PYTHONINTERP_FOUND ) |
64 | | -# set ( SERVER_TESTS |
65 | | -# server_hello_world |
66 | | -# server_async |
67 | | -# server_async_less_copy |
68 | | -# ) |
69 | | -# set ( PORT 8000 ) |
70 | | -# foreach ( test ${SERVER_TESTS} ) |
71 | | -# if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU) |
72 | | -# set_source_files_properties(${test}.cpp |
73 | | -# PROPERTIES COMPILE_FLAGS "-Wall") |
74 | | -# endif() |
75 | | -# add_executable(cpp-netlib-http-${test} ${test}.cpp) |
76 | | -# add_dependencies(cpp-netlib-http-${test} cppnetlib-server-parsers) |
77 | | -# target_link_libraries(cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers) |
78 | | -# set_target_properties(cpp-netlib-http-${test} |
79 | | -# PROPERTIES RUNTIME_OUTPUT_DIRECTORY |
80 | | -# ${CPP-NETLIB_BINARY_DIR}/tests) |
81 | | -# add_test(cpp-netlib-${test} |
82 | | -# ${PYTHON_EXECUTABLE} |
83 | | -# ${CPP-NETLIB_SOURCE_DIR}/libs/network/test/httplib_acceptance.py |
84 | | -# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test} |
85 | | -# ${PORT} |
86 | | -# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test}.passed) |
87 | | -# math (EXPR PORT "${PORT} + 1") |
88 | | -# endforeach (test) |
89 | | -# #else() |
90 | | -# # message(STATUS "Python not found, won't run server tests." |
91 | | -# endif( PYTHONINTERP_FOUND ) |
92 | | - |
93 | | -#set ( INLINED_TESTS |
94 | | -# client_include_inlined |
95 | | -# server_include_inlined |
96 | | -# ) |
97 | | -#foreach ( test ${INLINED_TESTS} ) |
98 | | -# if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU) |
99 | | -# set_source_files_properties(${test}.cpp |
100 | | -# PROPERTIES COMPILE_FLAGS "-Wall") |
101 | | -# endif() |
102 | | -# add_executable(cpp-netlib-http-inlined-${test} ${test}.cpp) |
103 | | -# target_link_libraries(cpp-netlib-http-inlined-${test} ${BOOST_LIBS} ${CMAKE_THREAD_LIBS_INIT}) |
104 | | -# if (OPENSSL_FOUND) |
105 | | -# target_link_libraries(cpp-netlib-http-inlined-${test} ${OPENSSL_LIBRARIES}) |
106 | | -# endif() |
107 | | -# set_target_properties(cpp-netlib-http-inlined-${test} |
108 | | -# PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests) |
109 | | -# add_test(cpp-netlib-http-inlined-${test} |
110 | | -# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-inlined-${test}) |
111 | | -#endforeach (test) |
112 | | - |
113 | 62 | endif() |