aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindSane.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
committerAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
commitd2b2c90a06bf1f4a21df196430d1f95856900410 (patch)
treeaba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /attic/modules/FindSane.cmake
parente15ffacc69242c89107afbfda6f8ece9f2b56633 (diff)
downloadextra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz
extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'attic/modules/FindSane.cmake')
-rw-r--r--attic/modules/FindSane.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/attic/modules/FindSane.cmake b/attic/modules/FindSane.cmake
new file mode 100644
index 00000000..64efa87a
--- /dev/null
+++ b/attic/modules/FindSane.cmake
@@ -0,0 +1,21 @@
+# cmake macro to test if we use sane
+#
+# SANE_FOUND - system has SANE libs
+# SANE_INCLUDE_DIR - the SANE include directory
+# SANE_LIBRARIES - The libraries needed to use SANE
+
+# Copyright (c) 2006, Marcus Hufgard <hufgardm@hufgard.de> 2006
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)
+
+FIND_LIBRARY(SANE_LIBRARY NAMES sane libsane
+ PATH_SUFFIXES sane
+)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sane DEFAULT_MSG SANE_LIBRARY SANE_INCLUDE_DIR )
+
+MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARY)