Warning, /libraries/mpvqt/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # 0002 # SPDX-FileCopyrightText: 2023 George Florea Bănuș <georgefb899@gmail.com> 0003 # 0004 # SPDX-License-Identifier: BSD-2-Clause 0005 # 0006 0007 cmake_minimum_required(VERSION 3.15) 0008 0009 project(MpvQt VERSION 1.0.0 LANGUAGES CXX) 0010 0011 set(REQUIRED_QT_VERSION 6.5.0) 0012 0013 find_package(ECM 5.89 REQUIRED NO_MODULE) 0014 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 0015 0016 include(FeatureSummary) 0017 include(KDEInstallDirs) 0018 include(KDECMakeSettings NO_POLICY_SCOPE) 0019 include(KDECompilerSettings NO_POLICY_SCOPE) 0020 include(ECMGenerateHeaders) 0021 include(ECMGenerateExportHeader) 0022 0023 include(KDEClangFormat) 0024 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.hpp *.c) 0025 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0026 0027 include(KDEGitCommitHooks) 0028 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) 0029 0030 include(ECMSetupVersion) 0031 ecm_setup_version(PROJECT 0032 VARIABLE_PREFIX MPVQT 0033 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/mpvqt_version.h" 0034 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/MpvQtConfigVersion.cmake" 0035 SOVERSION 1 0036 ) 0037 0038 find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Quick) 0039 0040 find_package(Libmpv) 0041 set_package_properties(Libmpv PROPERTIES TYPE REQUIRED 0042 URL "https://mpv.io") 0043 0044 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/MpvQt") 0045 0046 include(CMakePackageConfigHelpers) 0047 configure_package_config_file( 0048 "${CMAKE_CURRENT_SOURCE_DIR}/MpvQtConfig.cmake.in" 0049 "${CMAKE_CURRENT_BINARY_DIR}/MpvQtConfig.cmake" 0050 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0051 ) 0052 0053 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 0054 0055 add_subdirectory(src) 0056 0057 option(BUILD_EXAMPLES "Whether to build the examples" OFF) 0058 if (BUILD_EXAMPLES) 0059 add_subdirectory(examples/video-player) 0060 endif()