Skip to content

Commit c96464d

Browse files
committed
Merge pull request #339 from codemedic/0.11-devel-integration
cmake entries for hello_world_async_server_with_work_queue
2 parents 561c75a + a6c0c48 commit c96464d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libs/network/example/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ add_executable(rss_reader rss/rss.cpp rss/main.cpp)
1515
add_executable(twitter_search twitter/search.cpp)
1616
add_executable(hello_world_server http/hello_world_server.cpp)
1717
add_executable(hello_world_client http/hello_world_client.cpp)
18+
add_executable(hello_world_async_server_with_work_queue http/hello_world_async_server_with_work_queue.cpp)
1819
if (UNIX)
1920
add_executable(fileserver http/fileserver.cpp)
2021
endif (UNIX)
@@ -80,6 +81,12 @@ target_link_libraries(hello_world_client
8081
cppnetlib-uri
8182
cppnetlib-client-connections)
8283

84+
target_link_libraries(hello_world_async_server_with_work_queue
85+
${BOOST_CLIENT_LIBS}
86+
${CMAKE_THREAD_LIBS_INIT}
87+
cppnetlib-uri
88+
cppnetlib-client-connections)
89+
8390
if (OPENSSL_FOUND)
8491
target_link_libraries(http_client ${OPENSSL_LIBRARIES})
8592
target_link_libraries(simple_wget ${OPENSSL_LIBRARIES})
@@ -88,6 +95,7 @@ if (OPENSSL_FOUND)
8895
target_link_libraries(twitter_search ${OPENSSL_LIBRARIES})
8996
target_link_libraries(hello_world_server ${OPENSSL_LIBRARIES})
9097
target_link_libraries(hello_world_client ${OPENSSL_LIBRARIES})
98+
target_link_libraries(hello_world_async_server_with_work_queue ${OPENSSL_LIBRARIES})
9199
endif (OPENSSL_FOUND)
92100

93101
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
@@ -98,6 +106,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
98106
target_link_libraries(twitter_search rt)
99107
target_link_libraries(hello_world_server rt)
100108
target_link_libraries(hello_world_client rt)
109+
target_link_libraries(hello_world_async_server_with_work_queue cppnetlib-server-parsers rt)
101110
endif()
102111

103112
if (UNIX)
@@ -118,6 +127,7 @@ set_target_properties(rss_reader PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLI
118127
set_target_properties(twitter_search PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
119128
set_target_properties(hello_world_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
120129
set_target_properties(hello_world_client PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
130+
set_target_properties(hello_world_async_server_with_work_queue PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
121131
if (UNIX)
122132
set_target_properties(fileserver PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
123133
endif (UNIX)

0 commit comments

Comments
 (0)