diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-28 16:57:14 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-28 17:57:04 +0100 |
commit | 0c8f5391826b193c7f20b56b099b29d228f759df (patch) | |
tree | ed024bea889c0cb92eef81e5659c3a21a089c365 | |
parent | f37a917e9ae8f50864fdbb00c828daba2fc54364 (diff) | |
download | rockbox-0c8f5391826b193c7f20b56b099b29d228f759df.tar.gz rockbox-0c8f5391826b193c7f20b56b099b29d228f759df.zip |
rbutil: Auto-discover tests with cmake.
Change-Id: I2f6511ddc306ba1caecaa917667074cf51b61262
-rw-r--r-- | utils/rbutilqt/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/rbutilqt/CMakeLists.txt b/utils/rbutilqt/CMakeLists.txt index dfa0350f1b..cc1ecd575c 100644 --- a/utils/rbutilqt/CMakeLists.txt +++ b/utils/rbutilqt/CMakeLists.txt | |||
@@ -366,7 +366,7 @@ if(APPLE) | |||
366 | ${FRAMEWORK_CARBON} ${FRAMEWORK_SYSTEMCONFIGURATION} ${FRAMEWORK_CORESERVICES}) | 366 | ${FRAMEWORK_CARBON} ${FRAMEWORK_SYSTEMCONFIGURATION} ${FRAMEWORK_CORESERVICES}) |
367 | endif() | 367 | endif() |
368 | target_include_directories(test_compareversion PRIVATE base test/stubs) | 368 | target_include_directories(test_compareversion PRIVATE base test/stubs) |
369 | add_test(test_compareversion test_compareversion) | 369 | qtest_discover_tests(test_compareversion) |
370 | set_property(TARGET test_compareversion PROPERTY AUTOMOC ON) | 370 | set_property(TARGET test_compareversion PROPERTY AUTOMOC ON) |
371 | 371 | ||
372 | add_executable(test_httpget | 372 | add_executable(test_httpget |
@@ -375,7 +375,7 @@ add_executable(test_httpget | |||
375 | base/httpget.h) | 375 | base/httpget.h) |
376 | target_link_libraries(test_httpget Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test Qt${QT_VERSION_MAJOR}::Network) | 376 | target_link_libraries(test_httpget Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test Qt${QT_VERSION_MAJOR}::Network) |
377 | target_include_directories(test_httpget PRIVATE base test/stubs) | 377 | target_include_directories(test_httpget PRIVATE base test/stubs) |
378 | add_test(test_httpget test_httpget) | 378 | qtest_discover_tests(test_httpget) |
379 | set_property(TARGET test_httpget PROPERTY AUTOMOC ON) | 379 | set_property(TARGET test_httpget PROPERTY AUTOMOC ON) |
380 | 380 | ||
381 | add_executable(test_playerbuildinfo | 381 | add_executable(test_playerbuildinfo |
@@ -388,7 +388,7 @@ add_executable(test_playerbuildinfo | |||
388 | test/test-playerbuildinfo.cpp) | 388 | test/test-playerbuildinfo.cpp) |
389 | target_link_libraries(test_playerbuildinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test) | 389 | target_link_libraries(test_playerbuildinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test) |
390 | target_include_directories(test_playerbuildinfo PRIVATE base test/stubs) | 390 | target_include_directories(test_playerbuildinfo PRIVATE base test/stubs) |
391 | add_test(test_playerbuildinfo test_playerbuildinfo) | 391 | qtest_discover_tests(test_playerbuildinfo) |
392 | set_property(TARGET test_playerbuildinfo PROPERTY AUTOMOC ON) | 392 | set_property(TARGET test_playerbuildinfo PROPERTY AUTOMOC ON) |
393 | set_property(TARGET test_playerbuildinfo PROPERTY AUTORCC ON) | 393 | set_property(TARGET test_playerbuildinfo PROPERTY AUTORCC ON) |
394 | 394 | ||
@@ -400,7 +400,7 @@ add_executable(test_rockboxinfo | |||
400 | target_link_libraries(test_rockboxinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test) | 400 | target_link_libraries(test_rockboxinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test) |
401 | target_include_directories(test_rockboxinfo PRIVATE base test/stubs) | 401 | target_include_directories(test_rockboxinfo PRIVATE base test/stubs) |
402 | target_compile_definitions(test_rockboxinfo PRIVATE UNICODE) | 402 | target_compile_definitions(test_rockboxinfo PRIVATE UNICODE) |
403 | add_test(test_rockboxinfo test_rockboxinfo) | 403 | qtest_discover_tests(test_rockboxinfo) |
404 | set_property(TARGET test_rockboxinfo PROPERTY AUTOMOC ON) | 404 | set_property(TARGET test_rockboxinfo PROPERTY AUTOMOC ON) |
405 | 405 | ||
406 | 406 | ||