2 find_package(Qt6 REQUIRED COMPONENTS Test)
4 find_package(Qt5 REQUIRED COMPONENTS Test)
8 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
10 include_directories("../src")
14 testbittorrenttrackerentry.cpp
23 foreach(testFile ${testFiles})
24 get_filename_component(testFilename "${testFile}" NAME_WLE)
26 add_executable("${testFilename}" "${testFile}")
27 target_link_libraries("${testFilename}" PRIVATE Qt::Test qbt_base)
28 add_test(NAME "${testFilename}" COMMAND "${testFilename}")
30 add_dependencies(check "${testFilename}")