aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/FindAdwaita.cmake11
-rw-r--r--main/CMakeLists.txt1
2 files changed, 12 insertions, 0 deletions
diff --git a/cmake/FindAdwaita.cmake b/cmake/FindAdwaita.cmake
new file mode 100644
index 00000000..8202eea1
--- /dev/null
+++ b/cmake/FindAdwaita.cmake
@@ -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)
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 88b52c63..c133a399 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -11,6 +11,7 @@ find_packages(MAIN_PACKAGES REQUIRED
GObject
GTK4
ICU
+ Adwaita
)
set(RESOURCE_LIST