diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2011-09-26 11:01:53 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-26 11:01:53 +0000 |
| commit | af72bff308bdb392312d4305a88a38fab8255e59 (patch) | |
| tree | ae453ea2af9c6170ed17895342526ec5959b1032 /CMakeScripts/Modules/FindGtkSpell.cmake | |
| parent | * [INTL:sk] Slovak translation update (diff) | |
| download | inkscape-af72bff308bdb392312d4305a88a38fab8255e59.tar.gz inkscape-af72bff308bdb392312d4305a88a38fab8255e59.zip | |
cmake: aspell/gtkspell/poppler-cairo/libwpg
patch #822009 to address bug #820863
from Yu-Jie Lin.
(bzr r10648)
Diffstat (limited to 'CMakeScripts/Modules/FindGtkSpell.cmake')
| -rw-r--r-- | CMakeScripts/Modules/FindGtkSpell.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeScripts/Modules/FindGtkSpell.cmake b/CMakeScripts/Modules/FindGtkSpell.cmake new file mode 100644 index 000000000..131ad8dc8 --- /dev/null +++ b/CMakeScripts/Modules/FindGtkSpell.cmake @@ -0,0 +1,28 @@ +# - Try to find GtkSpell +# Once done this will define +# +# GTKSPELL_FOUND - system has GtkSpell +# GTKSPELL_INCLUDE_DIRS - the GtkSpell include directory +# GTKSPELL_LIBRARIES - Link these to use GtkSpell +# GTKSPELL_DEFINITIONS - Compiler switches required for using GtkSpell +# +# Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com> +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# + +include(${CMAKE_CURRENT_LIST_DIR}/../HelperMacros.cmake) + +if (GTKSPELL_LIBRARIES AND GTKSPELL_INCLUDE_DIRS) + # in cache already + set(GTKSPELL_FOUND TRUE) +else (GTKSPELL_LIBRARIES AND GTKSPELL_INCLUDE_DIRS) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + find_package(PkgConfig) + if (PKG_CONFIG_FOUND) + INKSCAPE_PKG_CONFIG_FIND(GTKSPELL gtkspell-2.0 0 gtkspell/gtkspell.h gtkspell-2.0 gtkspell) + endif (PKG_CONFIG_FOUND) +endif (GTKSPELL_LIBRARIES AND GTKSPELL_INCLUDE_DIRS) |
