mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
meson: Check both opencv4 and opencv dependencies.
OpenCV changed its pkg-config file name from opencv.pc to opencv4.pc in its latest version apparently. Fixes #31.
This commit is contained in:
parent
cbee61a008
commit
9aea9aa6d1
|
@ -38,13 +38,17 @@ avcodec = dependency('libavcodec', required: false)
|
|||
eigen3 = dependency('eigen3')
|
||||
libjpeg = dependency('libjpeg', required: false)
|
||||
libusb = dependency('libusb-1.0', required: false)
|
||||
opencv = dependency('opencv', required: get_option('tracking'))
|
||||
opengl = dependency('gl')
|
||||
sdl2 = dependency('sdl2', required: get_option('gui'))
|
||||
udev = dependency('libudev', required: false)
|
||||
libuvc = dependency('libuvc', required: false)
|
||||
vulkan = dependency('vulkan')
|
||||
|
||||
opencv = dependency('opencv4', required: false)
|
||||
if not opencv.found()
|
||||
opencv = dependency('opencv', required: get_option('tracking'))
|
||||
endif
|
||||
|
||||
doxygen = find_program('doxygen', required: get_option('docs'))
|
||||
|
||||
pthreads = cc.find_library('pthread', required: true)
|
||||
|
|
Loading…
Reference in a new issue