aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2022-09-08 11:31:37 +0300
committerMarvin W <git@larma.de>2023-01-24 19:20:42 +0100
commitf6e73d85c00a60a719da95a048ba2c15712325c3 (patch)
tree82c2c6618e0c6d03dac8060a0ab8308709ac6531
parent7e0d1db1965555720db2bef7380e61c23ef6dbcd (diff)
downloaddino-f6e73d85c00a60a719da95a048ba2c15712325c3.tar.gz
dino-f6e73d85c00a60a719da95a048ba2c15712325c3.zip
Add libadwaita to build system
-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