Warning, /libraries/kquickimageeditor/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu> 0002 # 0003 # SPDX-License-Identifier: BSD-2-Clause 0004 0005 cmake_minimum_required(VERSION 3.5) 0006 0007 set(KF5_VERSION "5.91.0") 0008 set(REQUIRED_QT_VERSION 5.15.0) 0009 set(KDE_COMPILERSETTINGS_LEVEL 5.84.0) 0010 0011 project(KQuickImageEditor LANGUAGES CXX VERSION 0.3.0) 0012 0013 find_package(ECM ${KF5_VERSION} NO_MODULE) 0014 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) 0015 0016 include(KDEInstallDirs) 0017 include(KDECMakeSettings) 0018 include(KDECompilerSettings) 0019 include(FeatureSummary) 0020 include(ECMSetupVersion) 0021 include(KDEClangFormat) 0022 include(KDEGitCommitHooks) 0023 include(ECMGenerateQmlTypes) 0024 include(CMakePackageConfigHelpers) 0025 include(KDEPackageAppTemplates) 0026 include(ECMQmlModule) 0027 0028 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KQuickImageEditor") 0029 0030 configure_package_config_file( 0031 "${CMAKE_CURRENT_SOURCE_DIR}/KQuickImageEditorConfig.cmake.in" 0032 "${CMAKE_CURRENT_BINARY_DIR}/KQuickImageEditorConfig.cmake" 0033 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0034 PATH_VARS CMAKE_INSTALL_PREFIX 0035 ) 0036 0037 install(FILES 0038 "${CMAKE_CURRENT_BINARY_DIR}/KQuickImageEditorConfigVersion.cmake" 0039 "${CMAKE_CURRENT_BINARY_DIR}/KQuickImageEditorConfig.cmake" 0040 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 0041 COMPONENT Devel 0042 ) 0043 0044 ecm_setup_version(${PROJECT_VERSION} 0045 VARIABLE_PREFIX KQUICKIMAGEEDITOR 0046 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kquickimageeditor_version.h" 0047 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KQuickImageEditorConfigVersion.cmake" 0048 SOVERSION 1 0049 ) 0050 0051 0052 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} COMPONENTS Core Quick REQUIRED) 0053 0054 add_subdirectory(src) 0055 0056 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 0057 0058 # add clang-format target for all our real source files 0059 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h) 0060 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0061 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)