File: FindExempi.cmake

package info (click to toggle)
tellico 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • 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-- 639 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Exempi_FOUND - system has the LIBEXEMPI library
# Exempi_INCLUDE_DIRS - the LIBEXEMPI include directory
# Exempi_LIBRARIES - The libraries needed to use LIBEXEMPI

find_package(PkgConfig)
pkg_check_modules(PC_LIBEXEMPI exempi-2.0)

find_path(Exempi_INCLUDE_DIRS
    NAMES exempi/xmp.h
    PATH_SUFFIXES exempi-2.0
    PATHS ${PC_LIBEXEMPI_INCLUDEDIR})
find_library(Exempi_LIBRARIES NAMES exempi ${PC_LIBEXEMPI_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Exempi FOUND_VAR Exempi_FOUND REQUIRED_VARS Exempi_INCLUDE_DIRS Exempi_LIBRARIES)

mark_as_advanced(Exempi_INCLUDE_DIRS Exempi_LIBRARIES)