File: FindCDIO.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 (15 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# CDIO_FOUND - system has libcdio
# CDIO_INCLUDE_DIRS - the libcdio include directory
# CDIO_LIBRARIES - The libcdio libraries

find_package(PkgConfig)
pkg_check_modules(PC_CDIO libcdio libiso9660)
list(APPEND PC_CDIO_INCLUDE_DIRS ${PC_CDIO_libcdio_INCLUDEDIR} ${PC_CDIO_libiso9660_INCLUDEDIR})

find_path(CDIO_INCLUDE_DIRS cdio/cdio.h PATHS ${PC_CDIO_INCLUDE_DIRS})
find_library(CDIO_LIBRARIES NAMES cdio libiso9660 ${PC_CDIO_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CDIO FOUND_VAR CDIO_FOUND REQUIRED_VARS CDIO_INCLUDE_DIRS CDIO_LIBRARIES)

mark_as_advanced(CDIO_INCLUDE_DIRS CDIO_LIBRARIES)