Warning, /sdk/kirigami-gallery/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 # KDE Release Service Version, managed by release script
0004 set (RELEASE_SERVICE_VERSION_MAJOR "23")
0005 set (RELEASE_SERVICE_VERSION_MINOR "03")
0006 set (RELEASE_SERVICE_VERSION_MICRO "70")
0007 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(kirigami2gallery VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(REQUIRED_QT_VERSION "5.15.0")
0012 if (ANDROID)
0013     set(REQUIRED_QT_VERSION "5.15.8")
0014 endif()
0015 set(KF5_DEP_VERSION "5.79.0")
0016 
0017 set(CMAKE_CXX_STANDARD 17)
0018 
0019 find_package(ECM ${KF5_DEP_VERSION} REQUIRED)
0020 
0021 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
0022 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0023 
0024 option(ENABLE_QML_PROFILING "Enable QML profiler support" ON)
0025 
0026 include(FeatureSummary)
0027 include(KDEInstallDirs)
0028 include(KDECMakeSettings)
0029 include(KDECompilerSettings NO_POLICY_SCOPE)
0030 include(ECMPoQmTools)
0031 include(ECMQMLModules)
0032 
0033 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Gui Svg QuickControls2)
0034 
0035 find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS Kirigami2 ItemModels)
0036 
0037 if(ANDROID)
0038     find_package(Qt5AndroidExtras ${REQUIRED_QT_VERSION} REQUIRED)
0039 else()
0040     find_package(Qt${QT_MAJOR_VERSION}Widgets ${REQUIRED_QT_VERSION} REQUIRED)
0041 endif()
0042 
0043 ecm_find_qmlmodule(QtGraphicalEffects 1.0)
0044 ecm_find_qmlmodule(org.kde.kitemmodels 1.0)
0045 
0046 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0047 
0048 add_subdirectory(src)
0049 
0050 ecm_install_po_files_as_qm(poqm)
0051 
0052 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0053