Warning, /frameworks/kglobalaccel/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 configure_file(config-kglobalaccel.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kglobalaccel.h )
0002 
0003 set(kglobalaccel_SRCS
0004   kglobalaccel.cpp
0005   kglobalshortcutinfo.cpp
0006   kglobalshortcutinfo_dbus.cpp
0007 )
0008 ecm_qt_declare_logging_category(kglobalaccel_SRCS
0009     HEADER kglobalaccel_debug.h
0010     IDENTIFIER KGLOBALACCEL_LOG
0011     CATEGORY_NAME kf.globalaccel
0012     OLD_CATEGORY_NAMES kf5.kglobalaccel
0013     DESCRIPTION "KGlobalAccel"
0014     EXPORT KGLOBALACCEL
0015 )
0016 
0017 ecm_create_qm_loader(kglobalaccel_SRCS kglobalaccel6_qt)
0018 
0019 set(kglobalaccel_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.KGlobalAccel.xml)
0020 set_source_files_properties(${kglobalaccel_xml} PROPERTIES INCLUDE "kglobalshortcutinfo_p.h")
0021 qt_add_dbus_interface(kglobalaccel_SRCS ${kglobalaccel_xml} kglobalaccel_interface )
0022 install(FILES ${kglobalaccel_xml} DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} RENAME kf6_org.kde.KGlobalAccel.xml)
0023 
0024 set(kglobalaccel_component_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kglobalaccel.Component.xml)
0025 set_source_files_properties(${kglobalaccel_component_xml} PROPERTIES INCLUDE "kglobalshortcutinfo_p.h")
0026 qt_add_dbus_interface(kglobalaccel_SRCS ${kglobalaccel_component_xml} kglobalaccel_component_interface )
0027 install(FILES ${kglobalaccel_component_xml} DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} RENAME kf6_org.kde.kglobalaccel.Component.xml)
0028 
0029 add_library(KF6GlobalAccel ${kglobalaccel_SRCS})
0030 add_library(KF6::GlobalAccel ALIAS KF6GlobalAccel)
0031 
0032 ecm_generate_export_header(KF6GlobalAccel
0033     BASE_NAME KGlobalAccel
0034     GROUP_BASE_NAME KF
0035     VERSION ${KF_VERSION}
0036     USE_VERSION_HEADER
0037     DEPRECATED_BASE_VERSION 0
0038     DEPRECATION_VERSIONS 5.102
0039     EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
0040 )
0041 
0042 target_include_directories(KF6GlobalAccel INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KGlobalAccel>")
0043 
0044 target_link_libraries(KF6GlobalAccel
0045 PUBLIC
0046     Qt6::DBus
0047     Qt6::Widgets
0048 )
0049 
0050 if(HAVE_X11)
0051     target_link_libraries(KF6GlobalAccel PRIVATE Qt6::GuiPrivate) # qtx11extras_p.h
0052 endif()
0053 
0054 set_target_properties(KF6GlobalAccel PROPERTIES VERSION   ${KGLOBALACCEL_VERSION}
0055                                                 SOVERSION ${KGLOBALACCEL_SOVERSION}
0056                                                 EXPORT_NAME "GlobalAccel"
0057 )
0058 
0059 ecm_generate_headers(KGlobalAccel_HEADERS
0060   HEADER_NAMES
0061   KGlobalAccel
0062   KGlobalShortcutInfo
0063 
0064   REQUIRED_HEADERS KGlobalAccel_HEADERS
0065 )
0066 
0067 install(TARGETS KF6GlobalAccel EXPORT KF6GlobalAccelTargets ${KF_INSTALL_TARGETS_DEFAULT_ARGS})
0068 
0069 install(FILES
0070   ${CMAKE_CURRENT_BINARY_DIR}/kglobalaccel_export.h
0071   ${KGlobalAccel_HEADERS}
0072   DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KGlobalAccel COMPONENT Devel
0073 )
0074 
0075 if(BUILD_QCH)
0076     ecm_add_qch(
0077         KF6GlobalAccel_QCH
0078         NAME KGlobalAccel
0079         BASE_NAME KF6GlobalAccel
0080         VERSION ${KF_VERSION}
0081         ORG_DOMAIN org.kde
0082         SOURCES # using only public headers, to cover only public API
0083             ${KGlobalAccel_HEADERS}
0084         MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md"
0085         LINK_QCHS
0086             Qt6Widgets_QCH
0087             Qt6DBus_QCH
0088         INCLUDE_DIRS
0089             ${CMAKE_CURRENT_BINARY_DIR}
0090         BLANK_MACROS
0091             KGLOBALACCEL_EXPORT
0092             KGLOBALACCEL_DEPRECATED
0093             KGLOBALACCEL_DEPRECATED_EXPORT
0094             "KGLOBALACCEL_DEPRECATED_VERSION(x, y, t)"
0095         TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
0096         QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
0097         COMPONENT Devel
0098     )
0099 endif()
0100 
0101 ecm_qt_install_logging_categories(
0102     EXPORT KGLOBALACCEL
0103     FILE kglobalaccel.categories
0104     DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0105 )