aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-03-22 16:10:52 +0100
committerfiaxh <git@lightrise.org>2021-01-21 15:31:12 +0100
commit830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0 (patch)
tree022b90b826667940499c49f39506e19e4c7ad213 /cmake
parentf94d8f56c79b0fe792b471a2423edb7beb4abd89 (diff)
downloaddino-830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0.tar.gz
dino-830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0.zip
Add spell-checking using Gspell
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindGspell.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/FindGspell.cmake b/cmake/FindGspell.cmake
new file mode 100644
index 00000000..51c33c7e
--- /dev/null
+++ b/cmake/FindGspell.cmake
@@ -0,0 +1,14 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(Gspell
+ PKG_CONFIG_NAME gspell-1
+ LIB_NAMES gspell-1
+ INCLUDE_NAMES gspell.h
+ INCLUDE_DIR_SUFFIXES gspell-1 gspell-1/gspell
+ DEPENDS Gtk
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Gspell
+ REQUIRED_VARS Gspell_LIBRARY
+ VERSION_VAR Gspell_VERSION)
+