Be more precise about deps in the public interface

parent b605202c
......@@ -83,13 +83,16 @@ add_library(komparediff2 ${komparediff2_SRCS})
generate_export_header(komparediff2 BASE_NAME diff2)
target_link_libraries(komparediff2
Qt5::Core
Qt5::Widgets
KF5::Codecs
KF5::CoreAddons
KF5::I18n
KF5::KIOCore
KF5::XmlGui
PUBLIC
KF5::XmlGui
KF5::ConfigCore
Qt5::Widgets
Qt5::Core
PRIVATE
KF5::Codecs
KF5::KIOCore
KF5::I18n
KF5::CoreAddons
)
target_include_directories(komparediff2 INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}>")
......
......@@ -4,11 +4,7 @@ include(CMakeFindDependencyMacro)
find_dependency(Qt5Core "@QT_MIN_VERSION@")
find_dependency(Qt5Widgets "@QT_MIN_VERSION@")
find_dependency(KF5CoreAddons "@KF_MIN_VERSION@")
find_dependency(KF5Codecs "@KF_MIN_VERSION@")
find_dependency(KF5Config "@KF_MIN_VERSION@")
find_dependency(KF5I18n "@KF_MIN_VERSION@")
find_dependency(KF5KIO "@KF_MIN_VERSION@")
find_dependency(KF5XmlGui "@KF_MIN_VERSION@")
include("${CMAKE_CURRENT_LIST_DIR}/LibKompareDiff2Targets.cmake")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment