diff options
| author | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2018-06-23 17:20:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-23 17:20:47 +0200 |
| commit | ed6b199dff15ddb4c6bd72d1565501e9f1a2bf87 (patch) | |
| tree | 7bbb53c40ecf53fe9464b53b7966dd7726eeac5e /cmake/modules/FindVPX.cmake | |
| parent | ea83c77a5a4524cc9778336b10eff60979582980 (diff) | |
| parent | 31f0a42073b68823e85835ec3e25114d79705a04 (diff) | |
| download | qxmpp-ed6b199dff15ddb4c6bd72d1565501e9f1a2bf87.tar.gz | |
Merge pull request #131 from olesalscheider/cmake
Add CMake build system, drop Qt4 support
Diffstat (limited to 'cmake/modules/FindVPX.cmake')
| -rw-r--r-- | cmake/modules/FindVPX.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cmake/modules/FindVPX.cmake b/cmake/modules/FindVPX.cmake new file mode 100644 index 00000000..8c60a555 --- /dev/null +++ b/cmake/modules/FindVPX.cmake @@ -0,0 +1,25 @@ +# Try to find VPX +# Once done this will define +# VPX_FOUND - System has VPX +# VPX_INCLUDE_DIRS - The VPX include directories +# VPX_LIBRARIES - The libraries needed to use VPX + +find_package(PkgConfig) +pkg_check_modules(PC_VPX QUIET libvpx) + +find_path(VPX_INCLUDE_DIR vpx/vp8.h + HINTS ${PC_VPX_INCLUDEDIR} ${PC_VPX_INCLUDE_DIRS} +) + +find_library(VPX_LIBRARY NAMES vpx + HINTS ${PC_VPX_LIBDIR} ${PC_VPX_LIBRARY_DIRS} +) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(VPX DEFAULT_MSG VPX_LIBRARY VPX_INCLUDE_DIR) + +mark_as_advanced(VPX_INCLUDE_DIR VPX_LIBRARY) + +set(VPX_LIBRARIES ${VPX_LIBRARY}) +set(VPX_INCLUDE_DIRS ${VPX_INCLUDE_DIR}) + |
