blob: 6c60cf63f87c744150ec14c3cfe84710d627b5f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# 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.
if (SANE_INCLUDE_DIR AND SANE_LIBRARY)
# Already in cache, be silent
set(Sane_FIND_QUIETLY TRUE)
endif (SANE_INCLUDE_DIR AND SANE_LIBRARY)
FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)
FIND_LIBRARY(SANE_LIBRARY NAMES sane libsane
PATHS
/usr/lib/sane
/usr/local/lib/sane
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sane DEFAULT_MSG SANE_INCLUDE_DIR SANE_LIBRARY )
MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARY)
|