CMakeLists.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_base64 check_base64.c)
  20. # target_link_libraries(check_base64 ${LIBS})
  21. # add_test(base64 ${CMAKE_CURRENT_BINARY_DIR}/check_base64)
  22. add_executable(check_services_view check_services_view.c)
  23. target_link_libraries(check_services_view ${LIBS})
  24. add_test(services_view ${CMAKE_CURRENT_BINARY_DIR}/check_services_view)
  25. add_executable(check_nodestore check_nodestore.c)
  26. target_link_libraries(check_nodestore ${LIBS})
  27. add_test(namespace ${CMAKE_CURRENT_BINARY_DIR}/check_nodestore)
  28. # add_executable(check_startup check_startup.c)
  29. # target_link_libraries(check_startup ${LIBS})
  30. # add_test(startup ${CMAKE_CURRENT_BINARY_DIR}/check_startup)