I am trying to write the correct CMakeLists.txt file for my new KDE project. However, I have some problems with the KDE installation directories.
Some of my install commands in the cmake file are as follows:
INSTALL(TARGETS photolayoutseditoreffectplugin_blur DESTINATION ${PLUGIN_INSTALL_DIR}) INSTALL(FILES photolayoutseditoreffectplugin_blur.desktop DESTINATION ${SERVICES_INSTALL_DIR}) INSTALL(TARGETS photolayoutseditor ${INSTALL_TARGETS_DEFAULT_ARGS}) INSTALL(PROGRAMS plugin/photolayoutseditor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) INSTALL(FILES plugin/photolayoutseditorui.rc DESTINATION ${DATA_INSTALL_DIR}/photolayoutseditor) INSTALL(FILES effects/photolayoutseditoreffectplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) INSTALL(FILES borders/photolayoutseditorborderplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
As you can see, there are several installation disks that are installed by the KDE package. Below I write these variables with my values ββin my cmake script:
${DATA_INSTALL_DIR} = /usr/local/share/apps/ ${SERVICES_INSTALL_DIR} = /usr/local/share/kde4/services/ ${SERVICETYPES_INSTALL_DIR} = /usr/local/share/kde4/servicetypes/ ${PLUGIN_INSTALL_DIR} = /usr/local/lib/kde4/
As you can see, all these paths contain a βlocalβ folder. After such an installation, my project is still invisible to my system. I checked these paths using kde4-config and it tells me:
kde4-config -path data = /usr/share/kde4/apps/ kde4-config -path services = /usr/share/kde4/services/ kde4-config -path servicetypes = /usr/share/kde4/servicetypes/ kde4-config -path lib = /usr/lib/
So why are the paths inside the cmake file different from the paths from the kde4-config tool? I'm sure kde4-config tells me the correct paths, because when I moved the project files to these directories (without the "local" folder in the URL), my project becomes visible to my system and it works. How to configure installation paths for my cmakelists.txt ??
Thanks for any help in advance! Best wishes!
source share