From 9fe58ac80574ca668c23ba662e73de5e5b054c1f Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Thu, 27 May 2021 03:50:11 +0200 Subject: Avoid cmake variables and pass sources directly to macro NO_CHANGELOG --- autotests/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'autotests') diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index eb48a134..cae4c0b1 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -14,16 +14,18 @@ if(NOT Qt5Concurrent_FOUND) endif() # compile KEntryMap into the test since it's not exported -set(kentrymaptest_SRCS kentrymaptest.cpp ../src/core/kconfigdata.cpp) -ecm_add_test(${kentrymaptest_SRCS} +ecm_add_test( + kentrymaptest.cpp + ../src/core/kconfigdata.cpp TEST_NAME kentrymaptest LINK_LIBRARIES Qt5::Test ) target_include_directories(kentrymaptest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../src/core) # compile KConfigUtils into the test since it's not exported -set(test_kconfigutils_SRCS test_kconfigutils.cpp ../src/kconf_update/kconfigutils.cpp) -ecm_add_test(${test_kconfigutils_SRCS} +ecm_add_test( + test_kconfigutils.cpp + ../src/kconf_update/kconfigutils.cpp TEST_NAME test_kconfigutils LINK_LIBRARIES KF5::ConfigCore Qt5::Test ) -- cgit v1.2.1