diff options
| author | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
| commit | 9fc8b732737f139d3e466510d75668ab45578960 (patch) | |
| tree | 76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindVDPAU.cmake | |
| parent | b75e2659df11c23aa921d2eed83c23adc282ed27 (diff) | |
| download | kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2 kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip | |
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindVDPAU.cmake')
| -rw-r--r-- | project/cmake/modules/FindVDPAU.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/project/cmake/modules/FindVDPAU.cmake b/project/cmake/modules/FindVDPAU.cmake new file mode 100644 index 0000000..680b45f --- /dev/null +++ b/project/cmake/modules/FindVDPAU.cmake | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #.rst: | ||
| 2 | # FindVDPAU | ||
| 3 | # --------- | ||
| 4 | # Finds the VDPAU library | ||
| 5 | # | ||
| 6 | # This will will define the following variables:: | ||
| 7 | # | ||
| 8 | # VDPAU_FOUND - system has VDPAU | ||
| 9 | # VDPAU_INCLUDE_DIRS - the VDPAU include directory | ||
| 10 | # VDPAU_LIBRARIES - the VDPAU libraries | ||
| 11 | # VDPAU_DEFINITIONS - the VDPAU definitions | ||
| 12 | |||
| 13 | if(PKG_CONFIG_FOUND) | ||
| 14 | pkg_check_modules(PC_VDPAU vdpau QUIET) | ||
| 15 | endif() | ||
| 16 | |||
| 17 | find_path(VDPAU_INCLUDE_DIR NAMES vdpau/vdpau.h vdpau/vdpau_x11.h | ||
| 18 | PATHS ${PC_VDPAU_INCLUDEDIR}) | ||
| 19 | find_library(VDPAU_LIBRARY NAMES vdpau | ||
| 20 | PATHS ${PC_VDPAU_LIBDIR}) | ||
| 21 | |||
| 22 | include(FindPackageHandleStandardArgs) | ||
| 23 | find_package_handle_standard_args(VDPAU | ||
| 24 | REQUIRED_VARS VDPAU_LIBRARY VDPAU_INCLUDE_DIR) | ||
| 25 | |||
| 26 | if(VDPAU_FOUND) | ||
| 27 | set(VDPAU_INCLUDE_DIRS ${VDPAU_INCLUDE_DIR}) | ||
| 28 | set(VDPAU_LIBRARIES ${VDPAU_LIBRARY}) | ||
| 29 | set(VDPAU_DEFINITIONS -DHAVE_LIBVDPAU=1) | ||
| 30 | endif() | ||
| 31 | |||
| 32 | mark_as_advanced(VDPAU_INCLUDE_DIR VDPAU_LIBRARY) | ||
