CMakeLists.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. cmake_minimum_required(VERSION 3.8)
  2. add_library(test_lib STATIC
  3. test-main.cpp
  4. )
  5. target_link_libraries(test_lib rotor_light)
  6. add_executable(20-queue 20-queue.cpp)
  7. target_link_libraries(20-queue test_lib)
  8. add_test(20-queue "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/20-queue")
  9. add_executable(23-planner 23-planner.cpp)
  10. target_link_libraries(23-planner test_lib)
  11. add_test(23-planner "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/23-planner")
  12. add_executable(30-supervisor 30-supervisor.cpp)
  13. target_link_libraries(30-supervisor test_lib)
  14. add_test(30-supervisor "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/30-supervisor")
  15. add_executable(31-messages-order 31-messages-order.cpp)
  16. target_link_libraries(31-messages-order test_lib)
  17. add_test(31-messages-order "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/31-messages-order")
  18. add_executable(32-hierarchy 32-hierarchy.cpp)
  19. target_link_libraries(32-hierarchy test_lib)
  20. add_test(32-hierarchy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/32-hierarchy")
  21. add_executable(33-timers 33-timers.cpp)
  22. target_link_libraries(33-timers test_lib)
  23. add_test(33-timers "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/33-timers")
  24. add_executable(35-broadcasting 35-broadcasting.cpp)
  25. target_link_libraries(35-broadcasting test_lib)
  26. add_test(35-broadcasting "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/35-broadcasting")
  27. add_executable(36-queue-full 36-queue-full.cpp)
  28. target_link_libraries(36-queue-full test_lib)
  29. add_test(36-queue-full "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/36-queue-full")
  30. add_executable(42-ping_pong 42-ping_pong.cpp)
  31. target_link_libraries(42-ping_pong test_lib)
  32. add_test(42-ping_pong "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/42-ping_pong")