-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
48 lines (35 loc) · 1.01 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
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.16.0)
project(I3Pager)
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_CXX_STANDARD 17)
set(QT_MAJOR_VERSION "6")
set(QT_MIN_VERSION "6.4.0")
set(KF_MIN_VERSION "6.0.0")
set(KF_MAJOR_VERSION "6")
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH})
include(ECMQtDeclareLoggingCategory)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(FeatureSummary)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION}
CONFIG REQUIRED
Quick
Concurrent
# Plugin
Widgets
)
find_package(KF${KF_MAJOR_VERSION} ${KF6_MIN_VERSION}
REQUIRED COMPONENTS
WindowSystem
# Pulled in by Plasma
Config
)
find_package(Plasma)
plasma_install_package(plasmoid org.kde.I3Pager)
ADD_DEFINITIONS(-DQT_NO_KEYWORDS)
SET(BUILD_SHARED_LIBS OFF)
add_subdirectory(i3ipc++)
target_compile_options(i3ipc++ PRIVATE -fexceptions -fPIC -Wno-deprecated-declarations)
add_subdirectory(src)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)