CMakeLists.txt 658 B

1234567891011121314151617181920212223242526
  1. include_directories(${PROJECT_SOURCE_DIR}/include)
  2. set(LIBS open62541)
  3. if(NOT WIN32)
  4. list(APPEND LIBS pthread)
  5. if (NOT APPLE)
  6. list(APPEND LIBS rt)
  7. endif()
  8. else()
  9. list(APPEND LIBS ws2_32)
  10. endif()
  11. if(ENABLE_MULTITHREADING)
  12. list(APPEND LIBS urcu-cds urcu urcu-common)
  13. endif(ENABLE_MULTITHREADING)
  14. add_executable(server_variable server_variable.c)
  15. target_link_libraries(server_variable ${LIBS})
  16. add_executable(server_repeated_job server_repeated_job.c)
  17. target_link_libraries(server_repeated_job ${LIBS})
  18. if(ENABLE_METHODCALLS)
  19. add_executable(server_method server_method.c)
  20. target_link_libraries(server_method ${LIBS})
  21. endif()