CMakeLists.txt 1.65 KB
Newer Older
1
project(kde-gtk-config)
2
set(PROJECT_VERSION "5.19.80")
Mikhail Zolotukhin's avatar
Mikhail Zolotukhin committed
3
cmake_minimum_required(VERSION 3.10)
4

Mikhail Zolotukhin's avatar
Mikhail Zolotukhin committed
5
find_package(ECM REQUIRED NO_MODULE)
6
7
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH})

Mikhail Zolotukhin's avatar
Mikhail Zolotukhin committed
8
9
10
find_package(Qt5 REQUIRED NO_MODULE COMPONENTS DBus)
find_package(KF5CoreAddons REQUIRED)
find_package(KF5Config REQUIRED)
11
12
find_package(KF5ConfigWidgets REQUIRED)
find_package(KF5GuiAddons REQUIRED)
Mikhail Zolotukhin's avatar
Mikhail Zolotukhin committed
13
find_package(KF5DBusAddons REQUIRED)
14
find_package(PkgConfig REQUIRED)
15
find_package(GSettingSchemas REQUIRED)
16
find_package(XSettingsd)
17

18
19
20
21
22
23
pkg_check_modules(GTK+3 REQUIRED IMPORTED_TARGET gtk+-3.0)
pkg_check_modules(GTK+2 REQUIRED IMPORTED_TARGET gtk+-2.0)
pkg_check_modules(GLib2 REQUIRED IMPORTED_TARGET glib-2.0)
pkg_check_modules(GObject REQUIRED IMPORTED_TARGET gobject-2.0)
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)

24
25
26
27
28
29
30
include(ECMSetupVersion)
include(ECMInstallIcons)
include(ECMMarkAsTest)
include(GenerateExportHeader)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
31
include(KDECompilerSettings NO_POLICY_SCOPE)
32
include(KDEClangFormat)
33

34
35
36
set_package_properties(XSettingsd PROPERTIES
    DESCRIPTION "XSettingsd daemon"
    TYPE RUNTIME
37
    PURPOSE "Required to apply settings to GTK applications on the fly"
38
39
)

Mikhail Zolotukhin's avatar
Mikhail Zolotukhin committed
40
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake kded/config.h)
41

42
add_subdirectory(gtk3proxies)
43
add_subdirectory(kded)
44
add_subdirectory(kconf_update)
45
add_subdirectory(color-reload-module)
46

47
48
49
50
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})

51
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)