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
672fb659
Commit
672fb659
authored
Feb 19, 2017
by
ggoldma1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake fixes for auxiliary projects.
parent
00257c36
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
examples/CMakeLists.txt
examples/CMakeLists.txt
+2
-2
matlab/CMakeLists.txt
matlab/CMakeLists.txt
+1
-1
utils/CMakeLists.txt
utils/CMakeLists.txt
+2
-2
No files found.
examples/CMakeLists.txt
View file @
672fb659
...
@@ -7,10 +7,10 @@ cmake_minimum_required(VERSION 2.8.10)
...
@@ -7,10 +7,10 @@ cmake_minimum_required(VERSION 2.8.10)
#version variable is defined from project root's CMakeLists
#version variable is defined from project root's CMakeLists
if
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 2
)
if
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 2
)
message
(
STATUS
"OpenCV 2.x detected"
)
message
(
STATUS
"OpenCV 2.x detected"
)
find_package
(
OpenCV 2
.4.3
REQUIRED core imgproc highgui
)
find_package
(
OpenCV 2 REQUIRED core imgproc highgui
)
elseif
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 3
)
elseif
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 3
)
message
(
STATUS
"OpenCV 3.x detected - including imgcodecs for compatibility"
)
message
(
STATUS
"OpenCV 3.x detected - including imgcodecs for compatibility"
)
find_package
(
OpenCV 3
.0.0
REQUIRED core imgproc imgcodecs
)
find_package
(
OpenCV 3 REQUIRED core imgproc imgcodecs
)
endif
()
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
}
"
)
...
...
matlab/CMakeLists.txt
View file @
672fb659
...
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.7.0)
...
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.7.0)
find_package
(
Matlab COMPONENTS MX_LIBRARY REQUIRED
)
find_package
(
Matlab COMPONENTS MX_LIBRARY REQUIRED
)
# Dependencies of the modules:
# Dependencies of the modules:
find_package
(
OpenCV
2.4.3
REQUIRED core
)
find_package
(
OpenCV REQUIRED core
)
set_target_properties
(
${
OpenCV_LIBS
}
PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE
)
set_target_properties
(
${
OpenCV_LIBS
}
PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE
)
if
(
MSVC
)
if
(
MSVC
)
# The standard find_package for boost on Win finds the dynamic libs, so for dynamic linking to boost we need to #define:
# The standard find_package for boost on Win finds the dynamic libs, so for dynamic linking to boost we need to #define:
...
...
utils/CMakeLists.txt
View file @
672fb659
...
@@ -7,10 +7,10 @@ cmake_minimum_required(VERSION 2.8.12)
...
@@ -7,10 +7,10 @@ cmake_minimum_required(VERSION 2.8.12)
#version variable is defined from project root's CMakeLists
#version variable is defined from project root's CMakeLists
if
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 2
)
if
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 2
)
message
(
STATUS
"OpenCV 2.x detected"
)
message
(
STATUS
"OpenCV 2.x detected"
)
find_package
(
OpenCV 2
.4.3
REQUIRED core imgproc highgui
)
find_package
(
OpenCV 2 REQUIRED core imgproc highgui
)
elseif
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 3
)
elseif
(
"
${
OpenCV_VERSION_MAJOR
}
$"
EQUAL 3
)
message
(
STATUS
"OpenCV 3.x detected - including imgcodecs for compatibility"
)
message
(
STATUS
"OpenCV 3.x detected - including imgcodecs for compatibility"
)
find_package
(
OpenCV 3
.0.0
REQUIRED core imgproc imgcodecs
)
find_package
(
OpenCV 3 REQUIRED core imgproc imgcodecs
)
endif
()
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
}
"
)
...
...
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