diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d45816..d36ca07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,64 +1,64 @@ cmake_minimum_required(VERSION 3.0.0) project(QAccessibilityClient VERSION "0.4.1") include(FeatureSummary) find_package(ECM "5.18.0" REQUIRED NO_MODULE) -set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") +set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) include(KDEInstallDirs) include(KDECompilerSettings NO_POLICY_SCOPE) include(KDECMakeSettings) include(ECMSetupVersion) ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX QACCESSIBILITYCLIENT PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/QAccessibilityClientConfigVersion.cmake" SOVERSION ${PROJECT_VERSION_MAJOR} VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/libqaccessibilityclient-version.h" ) add_definitions(-DQT_USE_FAST_OPERATOR_PLUS) if(BUILD_TESTING) enable_testing() set(QT_OTHER_COMPONENTS Test) endif() include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ) set(QT_MIN_VERSION "5.6.0") find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Widgets DBus ${QT_OTHER_COMPONENTS} ) set(QACCESSIBILITYCLIENT_LIB_NAME "qaccessibilityclient-qt5") set(_QAccessibilityClient_CONFIG_DEST "${KDE_INSTALL_CMAKEPACKAGEDIR}/${PROJECT_NAME}") add_subdirectory(src) if(BUILD_TESTING) add_subdirectory(tests) add_subdirectory(examples) endif() include(CMakePackageConfigHelpers) configure_package_config_file( "${CMAKE_CURRENT_SOURCE_DIR}/QAccessibilityClientConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/QAccessibilityClientConfig.cmake" INSTALL_DESTINATION ${_QAccessibilityClient_CONFIG_DEST} ) install( FILES "${QAccessibilityClient_BINARY_DIR}/QAccessibilityClientConfig.cmake" "${QAccessibilityClient_BINARY_DIR}/QAccessibilityClientConfigVersion.cmake" DESTINATION "${_QAccessibilityClient_CONFIG_DEST}" ) feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/README.md b/README.md index f34f061..05fdf78 100644 --- a/README.md +++ b/README.md @@ -1,62 +1,62 @@ QAccessibilityClient ==================== This library is used when writing accessibility clients such as screen readers. It comes with some examples demonstrating the API. These small helpers may be useful when testing accessibility. One of them writes all accessibiliy interfaces an application provides as text output. The other, more advanced application shows a tree of objects and allows some interaction and exploration. Coding style: Generally this library follows Be aware that it is in an early stage of development right now so no compatibility is guaranteered. All public API is in: src/qaccessibilityclient The abstraction of DBus and related at-spi tools should go into src/atspi but not exported. You can generate documentation (see docs folder README). Using CMake with QAccessibilityClient ------------------------------------- Do NOT write a Find*.cmake file! It just works the way it is (TM). Use: `find_package(QAccessibilityClient)` or, if you use feature logging: ```cmake macro_optional_find_package(QAccessibilityClient) macro_log_feature(QAccessibilityClient_FOUND "qaccessibilityclient" - "KDE client-side accessibility library" - "https://projects.kde.org/libkdeaccessibilityclient" + "Client-side accessibility library for Qt" + "https://commits.kde.org/libqaccessibilityclient" FALSE "" "Required to enable accessibility features.") include_directories(${QACCESSIBILITYCLIENT_INCLUDE_DIR}) target_link_libraries(targetname ${QACCESSIBILITYCLIENT_LIBRARY}) ``` In your code `#include ` etc. Creating releases ----------------- There are no translations for QAccessibilityClient since the library does not contain any strings that should be shown to users. The examples are not translated, that could potentially be considered. Follow , skip the translation parts. * Set the project version in the top-level CMakeLists.txt, push. * `./tarme.rb --version 0.3.0 --origin stable libqaccessibilityclient` * tarme.rb has nice output that gives instructions. * `./tagme.rb --version 0.3.0 libqaccessibilityclient` * upload as directed * file sysadmin ticket * `./logme.rb` to create changelog * `./tagme --version 0.3.0` to push tag * blog/send mail