CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. find_package(Check REQUIRED)
  2. find_package(Threads REQUIRED)
  3. set(LIBS open62541 ${CHECK_LIBRARIES} m)
  4. if(NOT WIN32)
  5. list(APPEND LIBS rt pthread)
  6. endif(NOT WIN32)
  7. if(ENABLE_MULTITHREADING)
  8. list(APPEND LIBS urcu-cds urcu)
  9. endif(ENABLE_MULTITHREADING)
  10. add_executable(check_builtin check_builtin.c)
  11. target_link_libraries(check_builtin ${LIBS})
  12. add_test(builtin ${CMAKE_CURRENT_BINARY_DIR}/check_builtin)
  13. add_executable(check_memory check_memory.c)
  14. target_link_libraries(check_memory ${LIBS})
  15. add_test(memory ${CMAKE_CURRENT_BINARY_DIR}/check_memory)
  16. add_executable(check_stack check_stack.c)
  17. target_link_libraries(check_stack ${LIBS})
  18. add_test(stack ${CMAKE_CURRENT_BINARY_DIR}/check_stack)
  19. add_executable(check_list check_list.c)
  20. target_link_libraries(check_list ${LIBS})
  21. add_test(list ${CMAKE_CURRENT_BINARY_DIR}/check_list)
  22. add_executable(check_base64 check_base64.c)
  23. target_link_libraries(check_base64 ${LIBS})
  24. add_test(base64 ${CMAKE_CURRENT_BINARY_DIR}/check_base64)
  25. add_executable(check_services_view check_services_view.c)
  26. target_link_libraries(check_services_view ${LIBS})
  27. add_test(services_view ${CMAKE_CURRENT_BINARY_DIR}/check_services_view)
  28. add_executable(check_namespace check_namespace.c)
  29. target_link_libraries(check_namespace ${LIBS})
  30. add_test(namespace ${CMAKE_CURRENT_BINARY_DIR}/check_namespace)
  31. add_executable(check_startup check_startup.c)
  32. target_link_libraries(check_startup ${LIBS})
  33. add_test(startup ${CMAKE_CURRENT_BINARY_DIR}/check_startup)