1234567891011121314151617181920212223242526 |
- include_directories(${PROJECT_SOURCE_DIR}/include)
- set(LIBS open62541)
- if(NOT WIN32)
- list(APPEND LIBS pthread)
- if (NOT APPLE)
- list(APPEND LIBS rt)
- endif()
- else()
- list(APPEND LIBS ws2_32)
- endif()
- if(ENABLE_MULTITHREADING)
- list(APPEND LIBS urcu-cds urcu urcu-common)
- endif(ENABLE_MULTITHREADING)
- add_executable(server_variable server_variable.c)
- target_link_libraries(server_variable ${LIBS})
- add_executable(server_repeated_job server_repeated_job.c)
- target_link_libraries(server_repeated_job ${LIBS})
- if(ENABLE_METHODCALLS)
- add_executable(server_method server_method.c)
- target_link_libraries(server_method ${LIBS})
- endif()
|