properly compute width of containing block of inline elements
[kdelibs.git] / cmake / modules / FindSane.cmake
blob6c60cf63f87c744150ec14c3cfe84710d627b5f9
1 # cmake macro to test if we use sane
3 #  SANE_FOUND - system has SANE libs
4 #  SANE_INCLUDE_DIR - the SANE include directory
5 #  SANE_LIBRARIES - The libraries needed to use SANE
7 # Copyright (c) 2006, Marcus Hufgard <hufgardm@hufgard.de> 2006
9 # Redistribution and use is allowed according to the terms of the BSD license.
10 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
12 if (SANE_INCLUDE_DIR AND SANE_LIBRARY)
13   # Already in cache, be silent
14   set(Sane_FIND_QUIETLY TRUE)
15 endif (SANE_INCLUDE_DIR AND SANE_LIBRARY)
17 FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)
19 FIND_LIBRARY(SANE_LIBRARY NAMES  sane libsane
20    PATHS
21    /usr/lib/sane
22    /usr/local/lib/sane
25 include(FindPackageHandleStandardArgs)
26 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sane DEFAULT_MSG SANE_INCLUDE_DIR SANE_LIBRARY )
28 MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARY)