From 830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Thu, 22 Mar 2018 16:10:52 +0100 Subject: Add spell-checking using Gspell --- cmake/FindGspell.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmake/FindGspell.cmake (limited to 'cmake') 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) + -- cgit v1.2.3-70-g09d2