Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
ced2b602
Commit
ced2b602
authored
Aug 11, 2015
by
MichaelGrupp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compatibility with OpenCV 3.x
imread has moved from highgui to the imgcodecs module in version 3.0.
parent
3a39a178
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
examples/CMakeLists.txt
examples/CMakeLists.txt
+4
-0
No files found.
examples/CMakeLists.txt
View file @
ced2b602
...
@@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 2.8.10)
...
@@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 2.8.10)
# The examples need a few additional dependencies (e.g. boost filesystem and OpenCV highgui):
# The examples need a few additional dependencies (e.g. boost filesystem and OpenCV highgui):
find_package
(
OpenCV 2.4.3 REQUIRED core imgproc highgui
)
find_package
(
OpenCV 2.4.3 REQUIRED core imgproc highgui
)
if
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 3
)
message
(
STATUS
"OpenCV 3.x detected - including imgcodecs for compatibility"
)
find_package
(
OpenCV 3.0.0 REQUIRED core imgproc highgui imgcodecs
)
endif
()
message
(
STATUS
"OpenCV include dir found at
${
OpenCV_INCLUDE_DIRS
}
"
)
message
(
STATUS
"OpenCV include dir found at
${
OpenCV_INCLUDE_DIRS
}
"
)
message
(
STATUS
"OpenCV lib dir found at
${
OpenCV_LIB_DIR
}
"
)
message
(
STATUS
"OpenCV lib dir found at
${
OpenCV_LIB_DIR
}
"
)
# This allows us to compile in RelWithDebInfo. It'll use the Release-version of OpenCV:
# This allows us to compile in RelWithDebInfo. It'll use the Release-version of OpenCV:
...
...
Write
Preview
Markdown
is supported
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