File: Findhdhomerun.cmake

package info (click to toggle)
kodi-pvr-hdhomerun 21.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: cpp: 680; xml: 34; makefile: 9
file content (15 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_HDHOMERUN hdhomerun QUIET)
endif()

find_path(HDHOMERUN_INCLUDE_DIRS hdhomerun.h
                                 PATHS ${PC_HDHOMERUN_INCLUDEDIR}
                                 PATH_SUFFIXES hdhomerun libhdhomerun)
find_library(HDHOMERUN_LIBRARIES hdhomerun
                                 PATHS ${PC_HDHOMERUN_LIBDIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(hdhomerun REQUIRED_VARS HDHOMERUN_LIBRARIES HDHOMERUN_INCLUDE_DIRS)

mark_as_advanced(HDHOMERUN_INCLUDE_DIRS HDHOMERUN_LIBRARIES)