mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Improve command for running test
It enables `make check` command to build tests and run it altogether.
This commit is contained in:
parent
1c0479a795
commit
958929aa77
1 changed files with 3 additions and 0 deletions
|
@ -16,10 +16,13 @@ set(testFiles
|
||||||
testutilsgzip.cpp
|
testutilsgzip.cpp
|
||||||
testutilsstring.cpp
|
testutilsstring.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach(testFile ${testFiles})
|
foreach(testFile ${testFiles})
|
||||||
get_filename_component(testFilename "${testFile}" NAME_WLE)
|
get_filename_component(testFilename "${testFile}" NAME_WLE)
|
||||||
|
|
||||||
add_executable("${testFilename}" "${testFile}")
|
add_executable("${testFilename}" "${testFile}")
|
||||||
target_link_libraries("${testFilename}" PRIVATE Qt::Test qbt_base)
|
target_link_libraries("${testFilename}" PRIVATE Qt::Test qbt_base)
|
||||||
add_test(NAME "${testFilename}" COMMAND "${testFilename}")
|
add_test(NAME "${testFilename}" COMMAND "${testFilename}")
|
||||||
|
|
||||||
|
add_dependencies(check "${testFilename}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Reference in a new issue