Warning, /libraries/libqaccessibilityclient/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 if (QT_MAJOR_VERSION STREQUAL "5") 0002 set(QACCESSIBILITYCLIENT_LIB_NAME "qaccessibilityclient-qt5") 0003 set(QACCESSIBILITYCLIENT_CMAKECONFIG_NAME "QAccessibilityClient") 0004 set(QACCESSIBILITYCLIENT_CMAKECONFIG_TARGETS_FILENAME "QAccessibilityClient") 0005 set(QACCESSIBILITYCLIENT_TARGET_EXPORT_NAME "qaccessibilityclient-qt5") 0006 set(QACCESSIBILITYCLIENT_INSTALL_INCLUDEDIR "${KDE_INSTALL_INCLUDEDIR}/QAccessibilityClient") 0007 else() 0008 set(QACCESSIBILITYCLIENT_LIB_NAME "qaccessibilityclient-qt6") 0009 set(QACCESSIBILITYCLIENT_CMAKECONFIG_NAME "QAccessibilityClient6") 0010 set(QACCESSIBILITYCLIENT_CMAKECONFIG_TARGETS_FILENAME "QAccessibilityClient6Targets") 0011 set(QACCESSIBILITYCLIENT_TARGET_EXPORT_NAME "QAccessibilityClient6") 0012 set(QACCESSIBILITYCLIENT_INSTALL_INCLUDEDIR "${KDE_INSTALL_INCLUDEDIR}/QAccessibilityClient6") 0013 endif() 0014 0015 add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII) 0016 add_definitions(-DQACCESSIBILITYCLIENT_LIBRARY) 0017 0018 ecm_setup_version(${PROJECT_VERSION} 0019 VARIABLE_PREFIX QACCESSIBILITYCLIENT 0020 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/${QACCESSIBILITYCLIENT_CMAKECONFIG_NAME}ConfigVersion.cmake" 0021 SOVERSION ${PROJECT_VERSION_MAJOR} 0022 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/libqaccessibilityclient-version.h" 0023 ) 0024 0025 add_library(QAccessibilityClient SHARED) 0026 0027 ecm_qt_declare_logging_category(QAccessibilityClient HEADER qaccessibilityclient_debug.h IDENTIFIER LIBQACCESSIBILITYCLIENT_LOG 0028 CATEGORY_NAME org.kde.qaccessibilityclient DESCRIPTION "QAccessibilityClient" EXPORT LIBQACCESSIBILITYCLIENT) 0029 0030 set_target_properties(QAccessibilityClient PROPERTIES 0031 OUTPUT_NAME ${QACCESSIBILITYCLIENT_LIB_NAME} 0032 EXPORT_NAME ${QACCESSIBILITYCLIENT_TARGET_EXPORT_NAME} 0033 VERSION ${QACCESSIBILITYCLIENT_VERSION} 0034 SOVERSION ${QACCESSIBILITYCLIENT_SOVERSION} 0035 ) 0036 0037 target_sources(QAccessibilityClient PRIVATE 0038 qaccessibilityclient/accessibleobject_p.cpp 0039 qaccessibilityclient/accessibleobject_p.h 0040 qaccessibilityclient/accessibleobject.cpp 0041 qaccessibilityclient/accessibleobject.h 0042 qaccessibilityclient/registry.cpp 0043 qaccessibilityclient/registry.h 0044 qaccessibilityclient/registry_p.cpp 0045 qaccessibilityclient/registry_p.h 0046 qaccessibilityclient/registrycache.cpp 0047 qaccessibilityclient/registrycache_p.h 0048 0049 atspi/dbusconnection.cpp 0050 atspi/dbusconnection.h 0051 atspi/qt-atspi.cpp 0052 atspi/qt-atspi.h 0053 ) 0054 0055 if (QT_MAJOR_VERSION STREQUAL "5") 0056 set(_generate_export_header_version_args) 0057 else() 0058 # For Qt6/KF6 world transitively include the version header 0059 if(ECM_VERSION VERSION_LESS "5.106") 0060 set(include_version_header_code "#include \"libqaccessibilityclient-version.h\"\n") 0061 set(_generate_export_header_version_args CUSTOM_CONTENT_FROM_VARIABLE include_version_header_code) 0062 else() 0063 set(_generate_export_header_version_args USE_VERSION_HEADER "\"libqaccessibilityclient-version.h\"") 0064 endif() 0065 endif() 0066 0067 ecm_generate_export_header(QAccessibilityClient 0068 BASE_NAME qaccessibilityclient 0069 VERSION ${QACCESSIBILITYCLIENT_VERSION} 0070 DEPRECATED_BASE_VERSION 0 0071 ${_generate_export_header_version_args} 0072 ) 0073 0074 target_link_libraries(QAccessibilityClient 0075 PUBLIC 0076 Qt${QT_MAJOR_VERSION}::Widgets 0077 Qt${QT_MAJOR_VERSION}::Core 0078 PRIVATE 0079 Qt${QT_MAJOR_VERSION}::DBus 0080 ) 0081 0082 target_include_directories(QAccessibilityClient 0083 INTERFACE "$<INSTALL_INTERFACE:${QACCESSIBILITYCLIENT_INSTALL_INCLUDEDIR}>" 0084 ) 0085 0086 0087 install(TARGETS QAccessibilityClient EXPORT QAccessibilityClient ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0088 0089 install(FILES 0090 ${CMAKE_CURRENT_BINARY_DIR}/qaccessibilityclient_export.h 0091 qaccessibilityclient/accessibleobject.h 0092 qaccessibilityclient/registry.h 0093 qaccessibilityclient/registrycache_p.h 0094 ${CMAKE_CURRENT_BINARY_DIR}/libqaccessibilityclient-version.h 0095 DESTINATION ${QACCESSIBILITYCLIENT_INSTALL_INCLUDEDIR}/qaccessibilityclient 0096 COMPONENT Devel 0097 ) 0098 0099 set(_QAccessibilityClient_CONFIG_DEST "${KDE_INSTALL_CMAKEPACKAGEDIR}/${QACCESSIBILITYCLIENT_CMAKECONFIG_NAME}") 0100 0101 install(EXPORT QAccessibilityClient 0102 FILE ${QACCESSIBILITYCLIENT_CMAKECONFIG_TARGETS_FILENAME}.cmake 0103 DESTINATION ${_QAccessibilityClient_CONFIG_DEST} 0104 ) 0105 0106 configure_package_config_file( 0107 "${CMAKE_CURRENT_SOURCE_DIR}/QAccessibilityClientConfig.cmake.in" 0108 "${CMAKE_CURRENT_BINARY_DIR}/${QACCESSIBILITYCLIENT_CMAKECONFIG_NAME}Config.cmake" 0109 INSTALL_DESTINATION ${_QAccessibilityClient_CONFIG_DEST} 0110 ) 0111 0112 install( FILES 0113 "${CMAKE_CURRENT_BINARY_DIR}/${QACCESSIBILITYCLIENT_CMAKECONFIG_NAME}Config.cmake" 0114 "${CMAKE_CURRENT_BINARY_DIR}/${QACCESSIBILITYCLIENT_CMAKECONFIG_NAME}ConfigVersion.cmake" 0115 DESTINATION "${_QAccessibilityClient_CONFIG_DEST}" )