Commit 538ba58d authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

runners: Allow runners to be loaded from build directory

parent 1409f426
......@@ -14,4 +14,5 @@ add_library(krunner_appstream MODULE ${krunner_appstream_SRCS})
kcoreaddons_desktop_to_json(krunner_appstream plasma-runner-appstream.desktop )
target_link_libraries(krunner_appstream PUBLIC KF5::Runner KF5::I18n KF5::Service AppStreamQt)
set_target_properties(krunner_appstream PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_appstream DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
......@@ -37,6 +37,7 @@ target_link_libraries(krunner_bookmarks_common
add_library(krunner_bookmarksrunner MODULE bookmarksrunner.cpp browserfactory.cpp)
kcoreaddons_desktop_to_json(krunner_bookmarksrunner plasma-runner-bookmarks.desktop )
target_link_libraries(krunner_bookmarksrunner krunner_bookmarks_common)
set_target_properties(krunner_bookmarksrunner PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_bookmarksrunner DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
......
......@@ -47,6 +47,7 @@ else ()
)
endif ()
set_target_properties(calculator PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS calculator DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner" )
if(BUILD_TESTING)
add_subdirectory(autotests)
......
......@@ -29,6 +29,7 @@ target_link_libraries(krunner_kill
)
add_dependencies(krunner_kill kcm_krunner_kill)
set_target_properties(krunner_kill PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_kill DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
install(TARGETS kcm_krunner_kill DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES plasma-runner-kill_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
......@@ -14,6 +14,7 @@ target_link_libraries(locations
KF5::Notifications
)
set_target_properties(locations PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS locations DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner" )
if(BUILD_TESTING)
......
......@@ -14,4 +14,5 @@ target_link_libraries(krunner_placesrunner
KF5::Notifications
)
set_target_properties(krunner_placesrunner PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_placesrunner DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner" )
......@@ -12,4 +12,5 @@ add_library(krunner_powerdevil MODULE ${krunner_powerdevil_SRCS})
kcoreaddons_desktop_to_json(krunner_powerdevil plasma-runner-powerdevil.desktop)
target_link_libraries(krunner_powerdevil Qt::DBus KF5::ConfigCore KF5::I18n KF5::Plasma KF5::Runner PW::KWorkspace)
set_target_properties(krunner_powerdevil PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_powerdevil DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
......@@ -27,6 +27,7 @@ target_link_libraries(krunner_services
krunner_services_static
)
set_target_properties(krunner_services PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_services DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
if(BUILD_TESTING)
......
......@@ -10,5 +10,6 @@ add_library(krunner_sessions MODULE ${krunner_sessions_SRCS})
kcoreaddons_desktop_to_json(krunner_sessions plasma-runner-sessions.desktop)
target_link_libraries(krunner_sessions Qt::Widgets Qt::DBus KF5::Runner KF5::I18n PW::KWorkspace)
set_target_properties(krunner_sessions PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_sessions DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner" )
......@@ -14,6 +14,7 @@ target_link_libraries(krunner_shell
KF5::Completion
)
set_target_properties(krunner_shell PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_shell DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
if(BUILD_TESTING)
......
include(ECMAddTests)
ecm_add_test(shellrunnertest.cpp TEST_NAME shellrunnertest LINK_LIBRARIES Qt::Test KF5::Runner)
target_compile_definitions(shellrunnertest PUBLIC -DPLUGIN_BUILD_DIR="${CMAKE_BINARY_DIR}/bin" -DRUNNER_NAME="shell")
target_compile_definitions(shellrunnertest PUBLIC -DPLUGIN_BUILD_DIR="${CMAKE_BINARY_DIR}/bin/kf5/krunner/" -DRUNNER_NAME="shell")
add_dependencies(shellrunnertest krunner_shell) # Test depends on the plugin being build
......@@ -12,6 +12,7 @@ target_link_libraries(krunner_webshortcuts
KF5::KIOWidgets
KF5::I18n)
set_target_properties(krunner_webshortcuts PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_webshortcuts DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner" )
install(FILES plasma-runner-webshortcuts_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
......@@ -4,4 +4,5 @@ add_library(krunner_windowedwidgets MODULE windowedwidgetsrunner.cpp)
kcoreaddons_desktop_to_json(krunner_windowedwidgets plasma-runner-windowedwidgets.desktop)
target_link_libraries(krunner_windowedwidgets KF5::Plasma KF5::I18n KF5::Runner)
set_target_properties(krunner_windowedwidgets PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/krunner")
install(TARGETS krunner_windowedwidgets DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
Supports Markdown
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