Warning, /games/arkade/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu> 0002 # 0003 # SPDX-License-Identifier: BSD-2-Clause 0004 0005 cmake_minimum_required(VERSION 3.0) 0006 0007 project(arkade) 0008 0009 set(QT_MIN_VERSION "5.15.2") 0010 set(KF_MIN_VERSION "5.90.0") 0011 0012 include(FeatureSummary) 0013 0014 ################# set KDE specific information ################# 0015 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) 0016 0017 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked 0018 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) 0019 0020 include(KDEInstallDirs) 0021 include(KDECMakeSettings) 0022 include(KDECompilerSettings NO_POLICY_SCOPE) 0023 include(ECMSetupVersion) 0024 include(ECMGenerateHeaders) 0025 include(ECMPoQmTools) 0026 if(QT_MAJOR_VERSION STREQUAL "6") 0027 set(QT_REQUIRED_VERSION "6.4.0") 0028 set(KF_MIN_VERSION "5.240.0") 0029 set(KF_MAJOR_VERSION "6") 0030 else() 0031 set(KF_MAJOR_VERSION "5") 0032 endif() 0033 ################# Find dependencies ################# 0034 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Gui Qml QuickControls2 Svg Widgets) 0035 find_package(KF${KF_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 I18n Package) 0036 0037 ################# build and install ################# 0038 0039 add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_URL_CAST_FROM_STRING) 0040 add_definitions(-DQT_USE_QSTRINGBUILDER) 0041 add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT) 0042 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) 0043 0044 add_subdirectory(src) 0045 add_subdirectory(games) 0046 0047 install(PROGRAMS org.kde.arkade.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0048 install(FILES org.kde.arkade.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0049 0050 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)