1 find_package(Qt6 REQUIRED COMPONENTS Test)
4 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
6 include_directories("../src")
10 testbittorrenttrackerentry.cpp
11 testconceptsexplicitlyconvertibleto.cpp
12 testconceptsstringable.cpp
16 testutilsbytearray.cpp
25 foreach(testFile ${testFiles})
26 get_filename_component(testFilename "${testFile}" NAME_WLE)
28 add_executable("${testFilename}" "${testFile}")
29 target_link_libraries("${testFilename}" PRIVATE Qt::Test qbt_base)
30 add_test(NAME "${testFilename}" COMMAND "${testFilename}")
32 add_dependencies(check "${testFilename}")