kdelibs/cmake/modules/FindSane.cmake

29 lines
747 B
CMake
Raw Normal View History

# Try to find SANE, once done this will define:
2014-11-13 01:04:59 +02:00
#
# SANE_FOUND - system has SANE libs
# SANE_INCLUDE_DIR - the SANE include directory
# SANE_LIBRARIES - The libraries needed to use SANE
#
# Copyright (c) 2021 Ivailo Monev <xakepa10@gmail.com>
2014-11-13 01:04:59 +02:00
#
# 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
NAMES sane/sane.h
HINTS $ENV{SANEDIR}/include
)
2014-11-13 01:04:59 +02:00
find_library(SANE_LIBRARY
NAMES sane
PATH_SUFFIXES sane
HINTS $ENV{SANEDIR}/lib
2014-11-13 01:04:59 +02:00
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Sane
REQUIRED_VARS SANE_LIBRARY SANE_INCLUDE_DIR
)
2014-11-13 01:04:59 +02:00
mark_as_advanced(SANE_INCLUDE_DIR SANE_LIBRARY)