Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb399564

Browse files
committed
Merge pull request#62 from leisinmr/master
CMakeList.txt changes for log example
2 parents78ac566 +235cdab commitb399564

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎libs/network/example/CMakeLists.txt‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# http://www.boost.org/LICENSE_1_0.txt)
55

66
include_directories(${CPP-NETLIB_SOURCE_DIR})
7-
find_package( Boost 1.41.0 COMPONENTS program_optionssystemregex date_time thread filesystem )
7+
find_package( Boost 1.41.0 COMPONENTS program_optionssystemregex date_time thread filesystemlog log_setup)
88
find_package( OpenSSL )
99
include_directories(${OPENSSL_INCLUDE_DIR})
1010
find_package( Threads )
@@ -14,20 +14,27 @@ set(Boost_USE_MULTITHREADED ON)
1414
if (Boost_FOUND)
1515
add_executable(http_client http_client.cpp)
1616
add_executable(simple_wget simple_wget.cpp)
17+
add_executable(hello_world_client http/hello_world_client.cpp)
1718
add_executable(hello_world_server http/hello_world_server.cpp)
19+
add_executable(hello_world_server_log http/hello_world_server_log.cpp)
1820
add_executable(fileserver http/fileserver.cpp)
1921
add_executable(uri uri.cpp)
2022
add_dependencies(http_client cppnetlib-uri-parsers)
23+
add_dependencies(hello_world_client cppnetlib-uri-parsers)
2124
add_dependencies(simple_wget cppnetlib-uri-parsers)
2225
add_dependencies(uri cppnetlib-uri-parsers)
2326
target_link_libraries(http_client${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT}${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
2427
target_link_libraries(simple_wget${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT}${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
28+
target_link_libraries(hello_world_client${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT}${OPENSSL_LIBRARIES} cppnetlib-uri-parsers)
2529
target_link_libraries(hello_world_server${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT}${OPENSSL_LIBRARIES} )
30+
target_link_libraries(hello_world_server_log${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT}${OPENSSL_LIBRARIES} )
2631
target_link_libraries(fileserver${Boost_LIBRARIES}${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)
2732
target_link_libraries(uri cppnetlib-uri-parsers)
2833
set_target_properties(http_client PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
2934
set_target_properties(simple_wget PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
35+
set_target_properties(hello_world_client PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
3036
set_target_properties(hello_world_server PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
37+
set_target_properties(hello_world_server_log PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
3138
set_target_properties(fileserver PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
3239
set_target_properties(uri PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
3340
endif()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp