mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Workaround test problem
Looks like the test executable need to be run from the cmake root build directory, because it hardcodes a relative path to the library api/sixtyfps-cpp/libsixtyfps_cpp.so This might actually be a corrosion bug.
This commit is contained in:
parent
a0d219b14c
commit
29f930d733
1 changed files with 2 additions and 1 deletions
|
@ -136,5 +136,6 @@ if(BUILD_TESTING)
|
|||
|
||||
add_executable(api_tests tests/tests.cpp)
|
||||
target_link_libraries(api_tests PRIVATE SixtyFPS Catch2::Catch2)
|
||||
add_test(api_tests api_tests)
|
||||
add_test(api_tests ${CMAKE_CURRENT_BINARY_DIR}/api_tests)
|
||||
set_property(TEST api_tests PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue