File: FindLibCue.cmake

package info (click to toggle)
btag 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: cpp: 1,711; makefile: 13
file content (25 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (3)
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
# - Try to find LibCue
# Once done this will define
#  LIBCUE_FOUND - System has LibCue
#  LIBCUE_INCLUDE_DIRS - The LibCue include directories
#  LIBCUE_LIBRARIES - The libraries needed to use LibCue
#  LIBCUE_DEFINITIONS - Compiler switches required for using LibCue

find_package(PkgConfig)
pkg_check_modules(PC_LIBCUE QUIET libcue)
set(LIBCUE_DEFINITIONS ${PC_LIBCUE_CFLAGS_OTHER})

find_path(LIBCUE_INCLUDE_DIR libcue/libcue.h
          HINTS ${PC_LIBCUE_INCLUDEDIR} ${PC_LIBCUE_INCLUDE_DIRS}
          PATH_SUFFIXES libcue)

find_library(LIBCUE_LIBRARY NAMES cue libcue
             HINTS ${PC_LIBCUE_LIBDIR} ${PC_LIBCUE_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibCue DEFAULT_MSG LIBCUE_LIBRARY LIBCUE_INCLUDE_DIR)

mark_as_advanced(LIBCUE_INCLUDE_DIR LIBCUE_LIBRARY)

set(LIBCUE_LIBRARIES ${LIBCUE_LIBRARY})
set(LIBCUE_INCLUDE_DIRS ${LIBCUE_INCLUDE_DIR})