fonzie
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

FindSane.cmake
text/plain

Download raw (928 bytes)

# cmake macro to test if we use sane
#
#  SANE_FOUND - system has Sane
#  SANE_INCLUDE_DIR - the Sane include directory
#  SANE_LIBRARIES - The libraries needed to use Sane

FIND_PATH(SANE_INCLUDE_DIR sane/sane.h
   /usr/include
   /usr/local/include
)

FIND_LIBRARY(SANE_LIBRARY NAMES  sane libsane
   PATHS
   /usr/lib/sane
   /usr/lib
   /usr/local/lib/sane
   /usr/local/lib
)

if (SANE_INCLUDE_DIR AND SANE_LIBRARY)
   set(SANE_FOUND TRUE)
   set(SANE_LIBRARIES ${SANE_LIBRARY})
else (SANE_INCLUDE_DIR AND SANE_LIBRARY)
   set(SANE_FOUND FALSE)
endif (SANE_INCLUDE_DIR AND SANE_LIBRARY)

if (SANE_FOUND)
   if (NOT Sane_FIND_QUIETLY)
      message(STATUS "Found sane: ${SANE_LIBRARIES}")
   endif (NOT Sane_FIND_QUIETLY)
else (SANE_FOUND)
   if (NOT Sane_FIND_QUIETLY)

 message(STATUS "don't find sane")

   endif (NOT Sane_FIND_QUIETLY)
endif (SANE_FOUND)

MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARIES SANE_LIBRARY)