Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 24 Lines | |||||
25 | find_package(packagekitqt5 CONFIG) | 25 | find_package(packagekitqt5 CONFIG) | ||
26 | find_package(AppStreamQt 0.11.1 CONFIG) | 26 | find_package(AppStreamQt 0.11.1 CONFIG) | ||
27 | find_package(KF5Attica 5.23 CONFIG) | 27 | find_package(KF5Attica 5.23 CONFIG) | ||
28 | find_package(KF5NewStuff 5.23 CONFIG) | 28 | find_package(KF5NewStuff 5.23 CONFIG) | ||
29 | 29 | | |||
30 | set(CMAKE_AUTORCC ON) | 30 | set(CMAKE_AUTORCC ON) | ||
31 | 31 | | |||
32 | pkg_check_modules(FLATPAK flatpak>=0.6.12) | 32 | pkg_check_modules(FLATPAK flatpak>=0.6.12) | ||
33 | find_package(LIBFWUPD 1.0.7 REQUIRED) | ||||
33 | 34 | | |||
34 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") | 35 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") | ||
35 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | 36 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | ||
36 | # 3.10+ lets us provide more macro names that require automoc. | 37 | # 3.10+ lets us provide more macro names that require automoc. | ||
37 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "DISCOVER_BACKEND_PLUGIN") | 38 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "DISCOVER_BACKEND_PLUGIN") | ||
38 | endif() | 39 | endif() | ||
39 | 40 | | |||
40 | configure_file(DiscoverVersion.h.in DiscoverVersion.h) | 41 | configure_file(DiscoverVersion.h.in DiscoverVersion.h) | ||
Show All 31 Lines | 71 | set_package_properties(AppStreamQt PROPERTIES | |||
72 | URL "http://www.freedesktop.org" | 73 | URL "http://www.freedesktop.org" | ||
73 | PURPOSE "Required to build the PackageKit backend" | 74 | PURPOSE "Required to build the PackageKit backend" | ||
74 | TYPE OPTIONAL) | 75 | TYPE OPTIONAL) | ||
75 | set_package_properties(FLATPAK PROPERTIES | 76 | set_package_properties(FLATPAK PROPERTIES | ||
76 | DESCRIPTION "Library that exposes flatpak repositories" | 77 | DESCRIPTION "Library that exposes flatpak repositories" | ||
77 | URL "http://www.freedesktop.org" | 78 | URL "http://www.freedesktop.org" | ||
78 | PURPOSE "Required to build the Flatpak backend" | 79 | PURPOSE "Required to build the Flatpak backend" | ||
79 | TYPE OPTIONAL) | 80 | TYPE OPTIONAL) | ||
81 | set_package_properties(LIBFWUPD PROPERTIES | ||||
82 | DESCRIPTION "Library that exposes fwupd" | ||||
83 | URL "http://www.fwupd.org" | ||||
84 | PURPOSE "Required to build the Fwupd backend" | ||||
85 | TYPE OPTIONAL) | ||||
80 | 86 | | |||
81 | feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) | 87 | feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) |