diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2021-05-27 03:54:31 +0200 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2021-05-27 03:54:31 +0200 |
commit | e4a9b977d47cc1ec01282212039ed58241eafcf4 (patch) | |
tree | 56460fefb804a0ff23ef809f5e9ca203660ec109 /src/core | |
parent | 9fe58ac80574ca668c23ba662e73de5e5b054c1f (diff) | |
download | kconfig-e4a9b977d47cc1ec01282212039ed58241eafcf4.tar.gz kconfig-e4a9b977d47cc1ec01282212039ed58241eafcf4.tar.bz2 |
Use more target-centric cmake code
NO_CHANGELOG
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 82800972..4e85142e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,4 +1,7 @@ -set(libkconfigcore_SRCS +add_library(KF5ConfigCore) +add_library(KF5::ConfigCore ALIAS KF5ConfigCore) + +target_sources(KF5ConfigCore PRIVATE kconfig.cpp kconfigbase.cpp kconfigdata.cpp @@ -13,7 +16,7 @@ set(libkconfigcore_SRCS kconfigwatcher.cpp ) -ecm_qt_declare_logging_category(libkconfigcore_SRCS +ecm_qt_declare_logging_category(KF5ConfigCore HEADER kconfig_core_log_settings.h IDENTIFIER KCONFIG_CORE_LOG CATEGORY_NAME kf.config.core @@ -24,8 +27,6 @@ ecm_qt_declare_logging_category(libkconfigcore_SRCS configure_file(config-kconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kconfig.h ) -add_library(KF5ConfigCore ${libkconfigcore_SRCS}) -add_library(KF5::ConfigCore ALIAS KF5ConfigCore) ecm_generate_export_header(KF5ConfigCore BASE_NAME KConfigCore GROUP_BASE_NAME KF |