From 3bbe9de5d59a6572f3549cc3a553dd44db421b68 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sat, 15 Jan 2022 23:56:12 +0200 Subject: Add KF*/KConfig to the interface include directories So that #include still works after changing its location in the previous commit. NO_CHANGELOG --- src/core/CMakeLists.txt | 4 +++- src/gui/CMakeLists.txt | 3 ++- src/qml/CMakeLists.txt | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 4754725b..61113253 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -41,7 +41,9 @@ target_compile_definitions(KF5ConfigCore KCONF_UPDATE_INSTALL_LOCATION="${KDE_INSTALL_FULL_LIBEXECDIR_KF}/$" ) -target_include_directories(KF5ConfigCore INTERFACE "$") +target_include_directories(KF5ConfigCore + INTERFACE "$" +) target_link_libraries(KF5ConfigCore PUBLIC Qt${QT_MAJOR_VERSION}::Core) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 4d5512d1..2136ec9f 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -21,7 +21,8 @@ ecm_generate_export_header(KF5ConfigGui EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} ) -target_include_directories(KF5ConfigGui INTERFACE "$") +target_include_directories(KF5ConfigGui + INTERFACE "$") target_link_libraries(KF5ConfigGui PUBLIC Qt${QT_MAJOR_VERSION}::Gui Qt${QT_MAJOR_VERSION}::Xml KF5::ConfigCore) diff --git a/src/qml/CMakeLists.txt b/src/qml/CMakeLists.txt index 17f90ad0..bd71387d 100644 --- a/src/qml/CMakeLists.txt +++ b/src/qml/CMakeLists.txt @@ -29,7 +29,8 @@ ecm_generate_headers(KConfigQml_HEADERS REQUIRED_HEADERS KConfigQml_HEADERS ) -target_include_directories(KF5ConfigQml INTERFACE "$") +target_include_directories(KF5ConfigQml + INTERFACE "$") install(TARGETS KF5ConfigQml EXPORT KF5ConfigTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES -- cgit v1.2.1