summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-28 16:57:14 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-28 17:57:04 +0100
commit0c8f5391826b193c7f20b56b099b29d228f759df (patch)
treeed024bea889c0cb92eef81e5659c3a21a089c365
parentf37a917e9ae8f50864fdbb00c828daba2fc54364 (diff)
downloadrockbox-0c8f5391826b193c7f20b56b099b29d228f759df.tar.gz
rockbox-0c8f5391826b193c7f20b56b099b29d228f759df.zip
rbutil: Auto-discover tests with cmake.
Change-Id: I2f6511ddc306ba1caecaa917667074cf51b61262
-rw-r--r--utils/rbutilqt/CMakeLists.txt8
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})
367endif() 367endif()
368target_include_directories(test_compareversion PRIVATE base test/stubs) 368target_include_directories(test_compareversion PRIVATE base test/stubs)
369add_test(test_compareversion test_compareversion) 369qtest_discover_tests(test_compareversion)
370set_property(TARGET test_compareversion PROPERTY AUTOMOC ON) 370set_property(TARGET test_compareversion PROPERTY AUTOMOC ON)
371 371
372add_executable(test_httpget 372add_executable(test_httpget
@@ -375,7 +375,7 @@ add_executable(test_httpget
375 base/httpget.h) 375 base/httpget.h)
376target_link_libraries(test_httpget Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test Qt${QT_VERSION_MAJOR}::Network) 376target_link_libraries(test_httpget Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test Qt${QT_VERSION_MAJOR}::Network)
377target_include_directories(test_httpget PRIVATE base test/stubs) 377target_include_directories(test_httpget PRIVATE base test/stubs)
378add_test(test_httpget test_httpget) 378qtest_discover_tests(test_httpget)
379set_property(TARGET test_httpget PROPERTY AUTOMOC ON) 379set_property(TARGET test_httpget PROPERTY AUTOMOC ON)
380 380
381add_executable(test_playerbuildinfo 381add_executable(test_playerbuildinfo
@@ -388,7 +388,7 @@ add_executable(test_playerbuildinfo
388 test/test-playerbuildinfo.cpp) 388 test/test-playerbuildinfo.cpp)
389target_link_libraries(test_playerbuildinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test) 389target_link_libraries(test_playerbuildinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test)
390target_include_directories(test_playerbuildinfo PRIVATE base test/stubs) 390target_include_directories(test_playerbuildinfo PRIVATE base test/stubs)
391add_test(test_playerbuildinfo test_playerbuildinfo) 391qtest_discover_tests(test_playerbuildinfo)
392set_property(TARGET test_playerbuildinfo PROPERTY AUTOMOC ON) 392set_property(TARGET test_playerbuildinfo PROPERTY AUTOMOC ON)
393set_property(TARGET test_playerbuildinfo PROPERTY AUTORCC ON) 393set_property(TARGET test_playerbuildinfo PROPERTY AUTORCC ON)
394 394
@@ -400,7 +400,7 @@ add_executable(test_rockboxinfo
400target_link_libraries(test_rockboxinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test) 400target_link_libraries(test_rockboxinfo Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Test)
401target_include_directories(test_rockboxinfo PRIVATE base test/stubs) 401target_include_directories(test_rockboxinfo PRIVATE base test/stubs)
402target_compile_definitions(test_rockboxinfo PRIVATE UNICODE) 402target_compile_definitions(test_rockboxinfo PRIVATE UNICODE)
403add_test(test_rockboxinfo test_rockboxinfo) 403qtest_discover_tests(test_rockboxinfo)
404set_property(TARGET test_rockboxinfo PROPERTY AUTOMOC ON) 404set_property(TARGET test_rockboxinfo PROPERTY AUTOMOC ON)
405 405
406 406