WebUI: Use Map instead of Mootools Hash in Torrents table
[qBittorrent.git] / test / CMakeLists.txt
blobe5ef618cc91cd8221898be2d4a9028a9f31ab8a9
1 find_package(Qt6 REQUIRED COMPONENTS Test)
3 enable_testing(true)
4 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
6 include_directories("../src")
8 set(testFiles
9     testalgorithm.cpp
10     testbittorrenttrackerentry.cpp
11     testconceptsexplicitlyconvertibleto.cpp
12     testconceptsstringable.cpp
13     testglobal.cpp
14     testorderedset.cpp
15     testpath.cpp
16     testutilsbytearray.cpp
17     testutilscompare.cpp
18     testutilsdatetime.cpp
19     testutilsgzip.cpp
20     testutilsio.cpp
21     testutilsnumber.cpp
22     testutilsstring.cpp
23     testutilsversion.cpp
26 foreach(testFile ${testFiles})
27     get_filename_component(testFilename "${testFile}" NAME_WLE)
29     add_executable("${testFilename}" "${testFile}")
30     target_link_libraries("${testFilename}" PRIVATE Qt::Test qbt_base)
31     add_test(NAME "${testFilename}" COMMAND "${testFilename}")
33     add_dependencies(check "${testFilename}")
34 endforeach()