Commit 59f9dda6 authored by Michael Reeves's avatar Michael Reeves
Browse files

*And now the kf5 KMessageBox.h is found

parent 48da4f0b
......@@ -17,7 +17,7 @@ include(FeatureSummary)
include(ECMInstallIcons)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n DocTools)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n DocTools KDELibs4Support)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
add_definitions(${QT_DEFINITIONS} ${KF5_DEFINITIONS})
......@@ -27,7 +27,7 @@ add_definitions(-DQ_DECL_CONSTRUCTOR_DEPRECATED=Q_DECL_DEPRECATED)
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_KEYWORDS)
include_directories(
${QT_INCLUDES} ${KF5_INCLUDES} ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}
${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
)
......
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS KIO WidgetsAddons)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS KIO
WidgetsAddons # KMessageBox
)
add_library(kdiff3fileitemaction MODULE kdiff3fileitemaction.cpp)
target_link_libraries(kdiff3fileitemaction KIO ${LibKDiff3_LIBRARIES})
target_link_libraries(kdiff3fileitemaction KF5::WidgetsAddons KIO ${LibKDiff3_LIBRARIES})
install(TARGETS kdiff3fileitemaction DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kdiff3fileitemaction.desktop DESTINATION ${SERVICES_INSTALL_DIR})
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