mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
C++ Api to run a functor from a thread
This commit is contained in:
parent
7293129fe1
commit
aabd320e83
5 changed files with 111 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue