File tree Expand file tree Collapse file tree 6 files changed +33
-3
lines changed Expand file tree Collapse file tree 6 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace handler
20
20
void std_log_handler ( const log_record& log )
21
21
{
22
22
std::cerr << " [network " << log.filename () << " :" << log.line () << " ] "
23
- << log.message () << std::endl;
23
+ << log.message () << std::endl;
24
24
}
25
25
}
26
26
Original file line number Diff line number Diff line change 5
5
6
6
include_directories (${CPP-NETLIB_SOURCE_DIR}/include )
7
7
8
+ add_subdirectory (logging )
8
9
add_subdirectory (uri )
9
10
add_subdirectory (http )
10
11
Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ if (Boost_FOUND)
33
33
cppnetlib-http-message-wrappers
34
34
cppnetlib-uri
35
35
cppnetlib-constants
36
- )
36
+ )
37
37
target_link_libraries (cpp-netlib-http-${test}
38
38
${Boost_LIBRARIES}
39
39
${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES}
40
- ${CMAKE_THREAD_LIBS_INIT}
40
+ ${CMAKE_THREAD_LIBS_INIT}
41
41
cppnetlib-message
42
42
cppnetlib-message-wrappers
43
43
cppnetlib-http-message
Original file line number Diff line number Diff line change
1
+ # Copyright (c) A. Joel Lamotte 2012.
2
+ # Distributed under the Boost Software License, Version 1.0.
3
+ # (See accompanying file LICENSE_1_0.txt or copy at
4
+ # http://www.boost.org/LICENSE_1_0.txt)
5
+
6
+ include_directories (${CPP-NETLIB_SOURCE_DIR}/include )
7
+ include_directories (${CPP-NETLIB_SOURCE_DIR} )
8
+
9
+ if (Boost_FOUND )
10
+ set (
11
+ TESTS
12
+ logging_log_record
13
+ logging_custom_handler
14
+ )
15
+ foreach (test ${TESTS} )
16
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU )
17
+ set_source_files_properties (${test} .cpp
18
+ PROPERTIES COMPILE_FLAGS "-Wall" )
19
+ endif ()
20
+ add_executable (cpp-netlib-${test} ${test} .cpp )
21
+ add_dependencies (cpp-netlib-${test} cppnetlib-logging )
22
+ target_link_libraries (cpp-netlib-${test}
23
+ ${Boost_LIBRARIES} cppnetlib-logging )
24
+ set_target_properties (cpp-netlib-${test}
25
+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests )
26
+ add_test (cpp-netlib-${test}
27
+ ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-${test} )
28
+ endforeach (test )
29
+ endif ()
You can’t perform that action at this time.
0 commit comments