|
@@ -209,13 +209,16 @@ if(BUILD_EXAMPLESERVER)
|
|
|
if(WIN32)
|
|
|
target_link_libraries(exampleServer ws2_32)
|
|
|
target_link_libraries(exampleServer_simple ws2_32)
|
|
|
+ target_link_libraries(exampleServer_so ws2_32)
|
|
|
else()
|
|
|
target_link_libraries(exampleServer rt)
|
|
|
target_link_libraries(exampleServer_simple rt)
|
|
|
+ target_link_libraries(exampleServer_so rt)
|
|
|
endif()
|
|
|
if(ENABLE_MULTITHREADING)
|
|
|
target_link_libraries(exampleServer urcu-cds urcu urcu-common pthread)
|
|
|
target_link_libraries(exampleServer_simple urcu-cds urcu urcu-common pthread)
|
|
|
+ target_link_libraries(exampleServer_so urcu-cds urcu urcu-common pthread)
|
|
|
endif()
|
|
|
endif()
|
|
|
|
|
@@ -244,11 +247,14 @@ if(BUILD_EXAMPLECLIENT)
|
|
|
target_link_libraries(exampleClient_so open62541)
|
|
|
if(WIN32)
|
|
|
target_link_libraries(exampleClient ws2_32)
|
|
|
+ target_link_libraries(exampleClient_so ws2_32)
|
|
|
else()
|
|
|
target_link_libraries(exampleClient rt)
|
|
|
+ target_link_libraries(exampleClient_so rt)
|
|
|
endif()
|
|
|
if(ENABLE_MULTITHREADING)
|
|
|
target_link_libraries(exampleClient urcu-cds urcu urcu-common pthread)
|
|
|
+ target_link_libraries(exampleClient_so urcu-cds urcu urcu-common pthread)
|
|
|
endif()
|
|
|
if(EXTENSION_STATELESS)
|
|
|
add_executable(statelessClient examples/client_stateless.c ${client_source})
|