|
@@ -204,23 +204,23 @@ if(BUILD_EXAMPLESERVER)
|
|
|
#if(NOT ENABLE_AMALGAMATION)
|
|
|
# list(APPEND server_source examples/networklayer_tcp.c examples/logger_stdout.c)
|
|
|
#endif()
|
|
|
- add_executable(exampleServer examples/server.c ${server_source})
|
|
|
+ add_executable(exampleServer_static examples/server.c ${server_source})
|
|
|
add_executable(exampleServer_simple examples/server_simple.c ${server_source})
|
|
|
- add_executable(exampleServer_so examples/server.c)
|
|
|
- target_link_libraries(exampleServer_so open62541)
|
|
|
+ add_executable(exampleServer examples/server.c)
|
|
|
+ target_link_libraries(exampleServer open62541)
|
|
|
if(WIN32)
|
|
|
- target_link_libraries(exampleServer ws2_32)
|
|
|
+ target_link_libraries(exampleServer_static ws2_32)
|
|
|
target_link_libraries(exampleServer_simple ws2_32)
|
|
|
- target_link_libraries(exampleServer_so ws2_32)
|
|
|
+ target_link_libraries(exampleServer ws2_32)
|
|
|
else()
|
|
|
- target_link_libraries(exampleServer rt)
|
|
|
+ target_link_libraries(exampleServer_static rt)
|
|
|
target_link_libraries(exampleServer_simple rt)
|
|
|
- target_link_libraries(exampleServer_so rt)
|
|
|
+ target_link_libraries(exampleServer rt)
|
|
|
endif()
|
|
|
if(ENABLE_MULTITHREADING)
|
|
|
- target_link_libraries(exampleServer urcu-cds urcu urcu-common pthread)
|
|
|
+ target_link_libraries(exampleServer_static 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)
|
|
|
+ target_link_libraries(exampleServer urcu-cds urcu urcu-common pthread)
|
|
|
endif()
|
|
|
endif()
|
|
|
|
|
@@ -244,19 +244,19 @@ if(BUILD_EXAMPLECLIENT)
|
|
|
#if(NOT ENABLE_AMALGAMATION)
|
|
|
# list(APPEND client_source examples/networklayer_tcp.c examples/logger_stdout.c)
|
|
|
#endif()
|
|
|
- add_executable(exampleClient examples/client.c ${client_source})
|
|
|
- add_executable(exampleClient_so examples/client.c)
|
|
|
- target_link_libraries(exampleClient_so open62541)
|
|
|
+ add_executable(exampleClient_static examples/client.c ${client_source})
|
|
|
+ add_executable(exampleClient examples/client.c)
|
|
|
+ target_link_libraries(exampleClient open62541)
|
|
|
if(WIN32)
|
|
|
+ target_link_libraries(exampleClient_static ws2_32)
|
|
|
target_link_libraries(exampleClient ws2_32)
|
|
|
- target_link_libraries(exampleClient_so ws2_32)
|
|
|
else()
|
|
|
+ target_link_libraries(exampleClient_static rt)
|
|
|
target_link_libraries(exampleClient rt)
|
|
|
- target_link_libraries(exampleClient_so rt)
|
|
|
endif()
|
|
|
if(ENABLE_MULTITHREADING)
|
|
|
+ target_link_libraries(exampleClient_static urcu-cds urcu urcu-common pthread)
|
|
|
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})
|