|
@@ -217,9 +217,11 @@ if(EXTENSION_UDP)
|
|
list(APPEND server_sources examples/networklayer_udp.c)
|
|
list(APPEND server_sources examples/networklayer_udp.c)
|
|
endif()
|
|
endif()
|
|
add_executable(exampleServer ${server_sources} ${exported_headers} ${generated_headers})
|
|
add_executable(exampleServer ${server_sources} ${exported_headers} ${generated_headers})
|
|
-target_link_libraries(exampleServer open62541 rt)
|
|
|
|
|
|
+target_link_libraries(exampleServer open62541)
|
|
if(WIN32)
|
|
if(WIN32)
|
|
target_link_libraries(exampleServer ws2_32)
|
|
target_link_libraries(exampleServer ws2_32)
|
|
|
|
+else()
|
|
|
|
+ target_link_libraries(exampleServer rt)
|
|
endif(WIN32)
|
|
endif(WIN32)
|
|
if(MULTITHREADING)
|
|
if(MULTITHREADING)
|
|
target_link_libraries(exampleServer urcu-cds urcu urcu-common pthread)
|
|
target_link_libraries(exampleServer urcu-cds urcu urcu-common pthread)
|