From d2b2c90a06bf1f4a21df196430d1f95856900410 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Thu, 30 Jun 2011 17:36:45 -0400 Subject: Move the modules, modules-test and systeminfo subdirs into 'attic' --- attic/modules/FindSane.cmake | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 attic/modules/FindSane.cmake (limited to 'attic/modules/FindSane.cmake') 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 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) -- cgit v1.2.1