aboutsummaryrefslogtreecommitdiff
path: root/autotests
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2021-05-27 03:50:11 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2021-05-27 03:50:11 +0200
commit9fe58ac80574ca668c23ba662e73de5e5b054c1f (patch)
tree2c4b857626dc16a56e600e2058a254a13d6706ad /autotests
parent4c590ede2cef74342aaf25eea9a32ee96c78b1aa (diff)
downloadkconfig-9fe58ac80574ca668c23ba662e73de5e5b054c1f.tar.gz
kconfig-9fe58ac80574ca668c23ba662e73de5e5b054c1f.tar.bz2
Avoid cmake variables and pass sources directly to macro
NO_CHANGELOG
Diffstat (limited to 'autotests')
-rw-r--r--autotests/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
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
)