Hello everyone,

I've written an own module for Krunner which works pretty well. However there 
is a problem within the build process and since I don't know where to look at, 
I want to ask here for some help. 

I build and install the runner from the build directery:

cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` ..
make 
sudo make install

The make install copies the .so-file to /usr/lib64/plugins/ but krunner looks 
in /usr/lib64/qt/plugins/ for it.  So what's wrong? How can I change this? 
I've looked at the existing runners integrated in kde but I can't found any 
glue code there that changes the directory or so. My cmake file is attched.

My System: 
Arch Linux (64 bit)
cmake 3.3.1
Qt 5.5.0

Thanks in advance!

Kind regards,
David
cmake_minimum_required(VERSION 2.8.12)
project(RunnerTranslator)

find_package(ECM 1.0.0 REQUIRED NO_MODULE)
set (CMAKE_MODULE_PATH
     ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH}
)

# Find the required Libaries
find_package (Qt5 REQUIRED CONFIG COMPONENTS Widgets Core Network)
find_package (KF5 REQUIRED COMPONENTS I18n Service Runner Plasma)

include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)

set(krunner_translator_SRCS
    translator.cpp
    translatorjob.cpp
)

# Now make sure all files get to the right place
add_library(krunner_translator MODULE ${krunner_translator_SRCS})

target_link_libraries(krunner_translator KF5::Runner KF5::Plasma Qt5::Widgets Qt5::Network
                      KF5::I18n
                      KF5::Service)
install(TARGETS krunner_translator DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-runner-translator.desktop DESTINATION ${SERVICES_INSTALL_DIR})
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to