123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- add_library(rotor_test_lib
- actor_test.cpp
- supervisor_test.cpp
- test-main.cpp
- )
- target_link_libraries(rotor_test_lib rotor::core)
- add_library(rotor::test ALIAS rotor_test_lib)
- set(rotor_TEST_LIBS rotor::core rotor::test)
- add_executable(010-sup-start_stop 010-sup-start_stop.cpp)
- target_link_libraries(010-sup-start_stop ${rotor_TEST_LIBS})
- add_test(010-sup-start_stop "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/010-sup-start_stop")
- add_executable(011-ping_pong 011-ping_pong.cpp)
- target_link_libraries(011-ping_pong ${rotor_TEST_LIBS})
- add_test(011-ping_pong "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/011-ping_pong")
- add_executable(012-actor-lifetime 012-actor-lifetime.cpp)
- target_link_libraries(012-actor-lifetime ${rotor_TEST_LIBS})
- add_test(012-actor-lifetime "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/012-actor-lifetime")
- add_executable(013-observer 013-observer.cpp)
- target_link_libraries(013-observer ${rotor_TEST_LIBS})
- add_test(013-observer "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/013-observer")
- add_executable(014-lifetime-observer 014-lifetime-observer.cpp)
- target_link_libraries(014-lifetime-observer ${rotor_TEST_LIBS})
- add_test(014-lifetime-observer "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/014-lifetime-observer")
- add_executable(015-actor-statuses 015-actor-statuses.cpp)
- target_link_libraries(015-actor-statuses ${rotor_TEST_LIBS})
- add_test(015-actor-statuses "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/015-actor-statuses")
- add_executable(016-pub_sub 016-pub_sub.cpp)
- target_link_libraries(016-pub_sub ${rotor_TEST_LIBS})
- add_test(016-pub_sub "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/016-pub_sub")
- add_executable(017-req-res 017-req-res.cpp)
- target_link_libraries(017-req-res ${rotor_TEST_LIBS})
- add_test(017-req-res "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/017-req-res")
- add_executable(018-lambda-handlers 018-lambda-handlers.cpp)
- target_link_libraries(018-lambda-handlers ${rotor_TEST_LIBS})
- add_test(018-lambda-handlers "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/018-lambda-handlers")
- add_executable(020-two-supervisors 020-two-supervisors.cpp)
- target_link_libraries(020-two-supervisors ${rotor_TEST_LIBS})
- add_test(020-two-supervisors "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/020-two-supervisors")
- add_executable(021-ping_pong-external 021-ping_pong-external.cpp)
- target_link_libraries(021-ping_pong-external ${rotor_TEST_LIBS})
- add_test(021-ping_pong-external "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/021-ping_pong-external")
- add_executable(022-supervisor-tree 022-supervisor-tree.cpp)
- target_link_libraries(022-supervisor-tree ${rotor_TEST_LIBS})
- add_test(022-supervisor-tree "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/022-supervisor-tree")
- add_executable(023-supervisor-children 023-supervisor-children.cpp)
- target_link_libraries(023-supervisor-children ${rotor_TEST_LIBS})
- add_test(023-supervisor-children "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/023-supervisor-children")
- add_executable(030-registry 030-registry.cpp)
- target_link_libraries(030-registry ${rotor_TEST_LIBS})
- add_test(030-registry "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/030-registry")
- if (BUILD_BOOST_ASIO)
- set(rotor_BOOTS_TEST_LIBS rotor::test rotor::asio)
- add_executable(101-asio_ping-pong-1-strand 101-asio_ping-pong-1-strand.cpp)
- target_link_libraries(101-asio_ping-pong-1-strand ${rotor_BOOTS_TEST_LIBS})
- add_test(101-asio_ping-pong-1-strand "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/101-asio_ping-pong-1-strand")
- add_executable(102-asio_ping-pong-2-strands 102-asio_ping-pong-2-strands.cpp)
- target_link_libraries(102-asio_ping-pong-2-strands ${rotor_BOOTS_TEST_LIBS})
- add_test(102-asio_ping-pong-2-strands "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/102-asio_ping-pong-2-strands")
- add_executable(103-asio_ping-pong-2-threads 103-asio_ping-pong-2-threads.cpp)
- target_link_libraries(103-asio_ping-pong-2-threads ${rotor_BOOTS_TEST_LIBS})
- add_test(103-asio_ping-pong-2-threads "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/103-asio_ping-pong-2-threads")
- add_executable(104-asio_timer 104-asio_timer.cpp)
- target_link_libraries(104-asio_timer ${rotor_BOOTS_TEST_LIBS})
- add_test(104-asio_timer "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/104-asio_timer")
- endif()
- if (BUILD_WX)
- find_package(wxWidgets COMPONENTS base core REQUIRED)
- include(${wxWidgets_USE_FILE})
- add_executable(121-wx_ping_ping 121-wx_ping_ping.cpp)
- target_link_libraries(121-wx_ping_ping rotor::test rotor::wx ${wxWidgets_LIBRARIES})
- add_test(121-wx_ping_ping "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/121-wx_ping_ping")
- add_executable(122-wx_timer 122-wx_timer.cpp)
- target_link_libraries(122-wx_timer rotor::test rotor::wx ${wxWidgets_LIBRARIES})
- add_test(122-wx_timer "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/122-wx_timer")
- endif()
- if (BUILD_EV)
- add_executable(131-ev_ping-pong 131-ev_ping-pong.cpp)
- target_link_libraries(131-ev_ping-pong rotor::test rotor::ev)
- add_test(131-ev_ping-pong "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/131-ev_ping-pong")
- add_executable(132-ev_timer 132-ev_timer.cpp)
- target_link_libraries(132-ev_timer rotor::test rotor::ev)
- add_test(132-ev_timer "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/132-ev_timer")
- endif()
|