-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (43 loc) · 1.24 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
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 3.16)
project(madobe)
set(CMAKE_CXX_STANDARD 17)
set(QT_MIN_VERSION "6.6.0")
set(KF6_MIN_VERSION "6.0.0")
find_package(ECM 6.0.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets WindowSystem)
find_package(Qt6 CONFIG REQUIRED COMPONENTS DBus)
set(QT_MAJOR_VERSION 5)
include(KDEInstallDirs6)
include(KDECMakeSettings)
find_package(KDecoration2 REQUIRED)
add_library(madobedecoration MODULE
src/madobedecoration.h
src/madobedecoration.cpp
src/button.h
src/button.cpp
src/theme.h
src/theme.cpp
src/theme-json.h
src/theme-json.cpp
src/conf.h
src/conf.cpp
src/logger.h
src/logger.cpp
)
# pkg-config
find_package(PkgConfig REQUIRED)
pkg_search_module(LIBRSVG librsvg-2.0)
target_include_directories(madobedecoration PUBLIC ${LIBRSVG_INCLUDE_DIRS})
target_compile_options(madobedecoration PUBLIC ${LIBRSVG_CFLAGS_OTHER})
target_link_libraries(madobedecoration
PUBLIC
Qt6::Core
Qt6::Gui
Qt6::DBus
PRIVATE
KDecoration2::KDecoration
KF6::CoreAddons
KF6::GuiAddons
${LIBRSVG_LIBRARIES}
)