mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00

with klauncher no longer responsible for KIO slave the next step is to make them plugins and the feature to put them on hold will be of no value because QLibrary reuses library/plugin instances and creating a new slave object will be cheap in other words the performance will be similar to that of KFileMetaInfo for which I also wrote the plugins myself - they are pretty quick compared to what strigi was doing and with more flexible configuration interface but it took some effort to get there Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
49 lines
1.1 KiB
CMake
49 lines
1.1 KiB
CMake
project(kinit)
|
|
|
|
include_directories(
|
|
${KDE4_KDEUI_INCLUDES}
|
|
${KDE4_KIO_INCLUDES}
|
|
)
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1210)
|
|
|
|
########### kioslave ###############
|
|
|
|
add_executable(kioslave kioslave.cpp)
|
|
|
|
install(TARGETS kioslave DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR})
|
|
|
|
########### klauncher ###############
|
|
|
|
set(klauncher_SRCS
|
|
klauncher.cpp
|
|
klauncher_adaptor.cpp
|
|
# just so that it gets generated
|
|
${CMAKE_CURRENT_BINARY_DIR}/org.kde.KLauncher.xml
|
|
)
|
|
|
|
# The adaptor is manually edited, generate the xml from it.
|
|
qt4_generate_dbus_interface(klauncher_adaptor.h org.kde.KLauncher.xml)
|
|
|
|
add_executable(klauncher4 ${klauncher_SRCS})
|
|
|
|
target_link_libraries(klauncher4
|
|
${KDE4_KDEUI_LIBS}
|
|
${KDE4_KIO_LIBS}
|
|
)
|
|
|
|
kde4_add_dbus_service(org.kde.klauncher.service.in)
|
|
|
|
install(TARGETS klauncher4 DESTINATION ${KDE4_BIN_INSTALL_DIR})
|
|
|
|
########### install files ###############
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/org.kde.KLauncher.xml
|
|
DESTINATION ${KDE4_DBUS_INTERFACES_INSTALL_DIR}
|
|
)
|