C++ Api to run a functor from a thread

This commit is contained in:
Olivier Goffart 2021-05-11 16:41:59 +02:00
parent 7293129fe1
commit aabd320e83
5 changed files with 111 additions and 14 deletions

View file

@ -150,6 +150,8 @@ if(BUILD_TESTING)
FetchContent_MakeAvailable(Catch2)
find_package(Threads REQUIRED)
macro(sixtyfps_test NAME)
add_executable(test_${NAME} tests/${NAME}.cpp)
target_link_libraries(test_${NAME} PRIVATE SixtyFPS Catch2::Catch2)
@ -171,5 +173,6 @@ if(BUILD_TESTING)
endmacro(sixtyfps_test)
sixtyfps_test(datastructures)
sixtyfps_test(interpreter)
sixtyfps_test(eventloop)
target_link_libraries(test_eventloop PRIVATE Threads::Threads)
endif()