Add libadwaita to build system

This commit is contained in:
Teemu Ikonen 2022-09-08 11:31:37 +03:00 committed by Marvin W
parent 7e0d1db196
commit f6e73d85c0
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
2 changed files with 12 additions and 0 deletions

11
cmake/FindAdwaita.cmake Normal file
View file

@ -0,0 +1,11 @@
include(PkgConfigWithFallback)
find_pkg_config_with_fallback(Adwaita
PKG_CONFIG_NAME libadwaita-1
LIB_NAMES libadwaita-1
INCLUDE_NAMES adwaita.h
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Adwaita
REQUIRED_VARS Adwaita_LIBRARY
VERSION_VAR Adwaita_VERSION)

View file

@ -11,6 +11,7 @@ find_packages(MAIN_PACKAGES REQUIRED
GObject GObject
GTK4 GTK4
ICU ICU
Adwaita
) )
set(RESOURCE_LIST set(RESOURCE_LIST