-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (26 loc) · 1.14 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-FileCopyrightText: 2022 Fushan Wen <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.5)
project(plasma-wallpaper-random-color)
set(PROJECT_VERSION "2.0.0")
set(PROJECT_VERSION_MAJOR 1)
set(KF6_MIN_VERSION "5.240.0")
set(QT_MIN_VERSION "6.6.0")
################# Disallow in-source build #################
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "plasma requires an out of source build. Please create a separate build directory and run 'cmake path_to_plasma [options]' there.")
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FeatureSummary)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMFindQmlModule)
find_package(Plasma 6.0 REQUIRED)
ecm_find_qmlmodule(QtQuick 2.0)
ecm_find_qmlmodule(org.kde.kquickcontrolsaddons 2.0)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
plasma_install_package(package com.github.easyteacher.randomcolor wallpapers wallpaper)