summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2016-06-18 17:45:08 +0200
committerElvis Angelaccio <[email protected]>2016-06-18 17:45:08 +0200
commit594af97a76c4bd56f5293b895b8567880806d365 (patch)
treef57b8ec8055db006a4a31c661bef3e36237b8998
parentbc6bb0e409dfa6464e3fa66bebf29a55d041e71f (diff)
Install kfileitemaction plugins in the expected subfolder
For a rationale, see https://git.reviewboard.kde.org/r/128225/ This will allow Dolphin to locate our plugins without having to check every plugin in $QT_PLUGIN_DIR.
-rw-r--r--app/CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 38a37ef..e57f7c9 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -56,22 +56,24 @@ install(TARGETS extracthere DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio_dnd)
# compressfileitemaction plugin
-add_library(compressfileitemaction MODULE compressfileitemaction.cpp)
+kcoreaddons_add_plugin(compressfileitemaction
+ SOURCES compressfileitemaction.cpp
+ JSON compressfileitemaction.json
+ INSTALL_NAMESPACE "kf5/kfileitemaction")
target_link_libraries(compressfileitemaction
kerfuffle
KF5::I18n
KF5::KIOWidgets)
-install(TARGETS compressfileitemaction DESTINATION ${KDE_INSTALL_PLUGINDIR})
-
# extractfileitemaction plugin
-add_library(extractfileitemaction MODULE extractfileitemaction.cpp)
+kcoreaddons_add_plugin(extractfileitemaction
+ SOURCES extractfileitemaction.cpp
+ JSON extractfileitemaction.json
+ INSTALL_NAMESPACE "kf5/kfileitemaction")
target_link_libraries(extractfileitemaction
kerfuffle
KF5::I18n
KF5::KIOWidgets)
-
-install(TARGETS extractfileitemaction DESTINATION ${KDE_INSTALL_PLUGINDIR})