blob: 465ecc69f96fcbedba9a71d969e0a693ddb8ce6c (
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
29
30
31
32
33
34
|
#.rst:
# FindCdio
# --------
# Finds the cdio library
#
# This will define the following variables::
#
# CDIO_FOUND - system has cdio
# CDIO_INCLUDE_DIRS - the cdio include directory
# CDIO_LIBRARIES - the cdio libraries
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_CDIO libcdio>=0.80 QUIET)
endif()
find_path(CDIO_INCLUDE_DIR NAMES cdio/cdio.h
PATHS ${PC_CDIO_INCLUDEDIR})
find_library(CDIO_LIBRARY NAMES cdio libcdio
PATHS ${PC_CDIO_LIBDIR})
set(CDIO_VERSION ${PC_CDIO_VERSION})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Cdio
REQUIRED_VARS CDIO_LIBRARY CDIO_INCLUDE_DIR
VERSION_VAR CDIO_VERSION)
if(CDIO_FOUND)
set(CDIO_LIBRARIES ${CDIO_LIBRARY})
set(CDIO_INCLUDE_DIRS ${CDIO_INCLUDE_DIR})
endif()
mark_as_advanced(CDIO_INCLUDE_DIR CDIO_LIBRARY)
|