CMakeLists.txt 586 B

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