aboutsummaryrefslogtreecommitdiff
path: root/src/kconf_update/CMakeLists.txt
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2021-05-27 03:54:31 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2021-05-27 03:54:31 +0200
commite4a9b977d47cc1ec01282212039ed58241eafcf4 (patch)
tree56460fefb804a0ff23ef809f5e9ca203660ec109 /src/kconf_update/CMakeLists.txt
parent9fe58ac80574ca668c23ba662e73de5e5b054c1f (diff)
downloadkconfig-e4a9b977d47cc1ec01282212039ed58241eafcf4.tar.gz
kconfig-e4a9b977d47cc1ec01282212039ed58241eafcf4.tar.bz2
Use more target-centric cmake code
NO_CHANGELOG
Diffstat (limited to 'src/kconf_update/CMakeLists.txt')
-rw-r--r--src/kconf_update/CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/kconf_update/CMakeLists.txt b/src/kconf_update/CMakeLists.txt
index 917a471b..40fb4ccb 100644
--- a/src/kconf_update/CMakeLists.txt
+++ b/src/kconf_update/CMakeLists.txt
@@ -1,11 +1,12 @@
-########### next target ###############
+add_executable(kconf_update)
+add_executable(KF5::kconf_update ALIAS kconf_update)
-set(kconf_update_SRCS
+target_sources(kconf_update PRIVATE
kconf_update.cpp
kconfigutils.cpp
- )
+)
-ecm_qt_declare_logging_category(kconf_update_SRCS
+ecm_qt_declare_logging_category(kconf_update
HEADER kconf_update_debug.h
IDENTIFIER KCONF_UPDATE_LOG
CATEGORY_NAME kf.config.kconf_update
@@ -14,8 +15,6 @@ ecm_qt_declare_logging_category(kconf_update_SRCS
EXPORT KCONFIG
)
-add_executable(kconf_update ${kconf_update_SRCS})
-add_executable(KF5::kconf_update ALIAS kconf_update)
target_link_libraries(kconf_update Qt5::Core KF5::ConfigCore)
include(ECMMarkNonGuiExecutable)
ecm_mark_nongui_executable(kconf_update)