2014-11-13 01:04:59 +02:00
|
|
|
project(kded)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
include_directories( ${KDE4_KIO_INCLUDES} )
|
|
|
|
|
|
|
|
if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
|
|
|
set(KBUILDSYCOCA_NO_KCRASH TRUE)
|
2016-03-06 15:59:05 +00:00
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 15:08:31 +02:00
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/config-kded.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-kded.h
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
set(kded_SRCS
|
|
|
|
kded.cpp
|
|
|
|
kdedadaptor.cpp
|
2015-11-01 15:08:31 +02:00
|
|
|
# just so that it gets generated
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/org.kde.kded.xml
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_executable(kded4 ${kded_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-07-13 13:43:08 +03:00
|
|
|
target_link_libraries(kded4 ${KDE4_KIO_LIBS} ${X11_LIBRARIES})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 15:08:31 +02:00
|
|
|
install(TARGETS kded4 ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 15:08:31 +02:00
|
|
|
qt4_generate_dbus_interface(kdedadaptor.h org.kde.kded.xml)
|
|
|
|
install(
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kded.xml
|
|
|
|
DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-05-09 16:39:13 +00:00
|
|
|
set(kbuildsycoca_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
kbuildsycoca.cpp
|
|
|
|
kbuildmimetypefactory.cpp
|
|
|
|
kmimeassociations.cpp
|
|
|
|
kbuildservicetypefactory.cpp
|
|
|
|
kbuildservicefactory.cpp
|
|
|
|
kbuildservicegroupfactory.cpp
|
|
|
|
kbuildprotocolinfofactory.cpp
|
|
|
|
kctimefactory.cpp
|
|
|
|
vfolder_menu.cpp
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
if(KBUILDSYCOCA_NO_KCRASH)
|
|
|
|
set(KBUILDSYCOCA_MAIN_LIBS ${KDE4_KDECORE_LIBS})
|
2015-09-01 01:05:33 +03:00
|
|
|
else()
|
2014-11-13 01:04:59 +02:00
|
|
|
set(KBUILDSYCOCA_MAIN_LIBS ${KDE4_KDEUI_LIBS})
|
2015-09-01 01:05:33 +03:00
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_executable(kbuildsycoca4 ${kbuildsycoca_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 15:08:31 +02:00
|
|
|
target_link_libraries(kbuildsycoca4
|
|
|
|
${KBUILDSYCOCA_MAIN_LIBS}
|
|
|
|
${QT_QTXML_LIBRARY}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 15:08:31 +02:00
|
|
|
install(TARGETS kbuildsycoca4 ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
2014-11-27 18:22:42 +00:00
|
|
|
|
2015-11-01 15:08:31 +02:00
|
|
|
install(
|
|
|
|
FILES applications.menu
|
|
|
|
DESTINATION ${SYSCONF_INSTALL_DIR}/xdg/menus
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
kdedmodule.desktop
|
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
|