Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blender
monado
Commits
1f0b4363
Commit
1f0b4363
authored
Jun 13, 2019
by
Ryan Pavlik
Committed by
Jakob Bornecrantz
Jun 28, 2019
Browse files
build: Adjust OpenCV components add JPEG and use libusb cmake file
parent
7a36e9ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
1f0b4363
...
...
@@ -25,10 +25,9 @@ find_package(Vulkan REQUIRED)
find_package
(
OpenGL REQUIRED COMPONENTS GLX
)
find_package
(
HIDAPI
)
find_package
(
OpenHMD
)
find_package
(
OpenCV
)
# @TODO Turn into a find_package LIBUSB-1.0 file.
pkg_check_modules
(
LIBUSB REQUIRED libusb-1.0
)
find_package
(
OpenCV COMPONENTS core calib3d highgui imgproc imgcodecs features2d video
)
find_package
(
Libusb1
)
find_package
(
JPEG
)
# @TODO Turn into a find_package LIBUVC file.
pkg_check_modules
(
LIBUVC libuvc
)
...
...
@@ -52,6 +51,7 @@ cmake_dependent_option(BUILD_WITH_XLIB "Enable xlib support" ON "X11_FOUND" OFF)
cmake_dependent_option
(
BUILD_WITH_OPENGL
"Enable OpenGL Graphics API support"
ON
"OPENGL_FOUND"
OFF
)
set
(
BUILD_WITH_LIBUSB TRUE
)
cmake_dependent_option
(
BUILD_WITH_JPEG
"Enable jpeg code (used for some video drivers)"
ON
"JPEG_FOUND"
OFF
)
cmake_dependent_option
(
BUILD_WITH_OPENCV
"Enable OpenCV backend"
ON
"OpenCV_FOUND"
OFF
)
cmake_dependent_option
(
BUILD_WITH_LIBUVC
"Enable libuvc video driver"
ON
"LIBUVC_FOUND"
OFF
)
cmake_dependent_option
(
BUILD_WITH_FFMPEG
"Enable ffmpeg testing video driver"
ON
"FFMPEG_FOUND"
OFF
)
...
...
@@ -84,6 +84,10 @@ if(BUILD_WITH_OPENCV)
add_definitions
(
-DXRT_HAVE_OPENCV
)
endif
()
if
(
BUILD_WITH_JPEG
)
add_definitions
(
-DXRT_HAVE_JPEG
)
endif
()
if
(
BUILD_WITH_LIBUVC
)
add_definitions
(
-DXRT_HAVE_LIBUVC
)
endif
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment