File: FindYaz.cmake

package info (click to toggle)
tellico 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 29,420 kB
  • sloc: cpp: 89,950; xml: 41,049; ansic: 7,011; javascript: 454; python: 354; ada: 32; sh: 28; perl: 17; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Yaz_FOUND - system has the YAZ library
# Yaz_INCLUDE_DIRS - the YAZ include directory
# Yaz_LIBRARIES - The libraries needed to use YAZ

find_package(PkgConfig)
pkg_check_modules(PC_YAZ yaz)

find_path(Yaz_INCLUDE_DIRS
    NAMES yaz/yaz-version.h
    PATHS ${PC_YAZ_INCLUDEDIR})

find_library(Yaz_LIBRARIES NAMES yaz ${PC_YAZ_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Yaz FOUND_VAR Yaz_FOUND REQUIRED_VARS Yaz_INCLUDE_DIRS Yaz_LIBRARIES)

mark_as_advanced(Yaz_INCLUDE_DIRS Yaz_LIBRARIES)