Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
stitchEm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franco (nextime) Lanza
stitchEm
Commits
02b52011
Commit
02b52011
authored
Nov 09, 2019
by
Jeremy Tellaa
Committed by
jeremad
Dec 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use cmake openCV module
parent
a2771c1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
43 deletions
+1
-43
FindOpenCV.cmake
cmake/FindOpenCV.cmake
+0
-42
CMakeLists.txt
lib/CMakeLists.txt
+1
-1
No files found.
cmake/FindOpenCV.cmake
deleted
100644 → 0
View file @
a2771c1f
if
(
LINUX OR ANDROID
)
if
(
LINUX
)
find_library
(
OpenCV_CORE_LIBS NAMES
"opencv_core"
)
find_library
(
OpenCV_CALIB_LIBS NAMES
"opencv_calib3d"
)
find_library
(
OpenCV_FEATURES_LIBS NAMES
"opencv_features2d"
)
find_library
(
OpenCV_IMGPROC_LIBS NAMES
"opencv_imgproc"
)
find_library
(
OpenCV_FLANN_LIBS NAMES
"opencv_flann"
)
find_library
(
OpenCV_VIDEO_LIBS NAMES
"opencv_video"
)
else
()
find_library
(
OpenCV_CORE_LIBS NAMES
"opencv_core"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
find_library
(
OpenCV_CALIB_LIBS NAMES
"opencv_calib3d"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
find_library
(
OpenCV_FEATURES_LIBS NAMES
"opencv_features2d"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
find_library
(
OpenCV_IMGPROC_LIBS NAMES
"opencv_imgproc"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
find_library
(
OpenCV_FLANN_LIBS NAMES
"opencv_flann"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
find_library
(
OpenCV_VIDEO_LIBS NAMES
"opencv_video"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
set
(
OpenCV_INCLUDE_DIRS
${
CMAKE_EXTERNAL_DEPS
}
/include/opencv2
)
endif
()
set
(
OpenCV_LIBRARIES
${
OpenCV_CALIB_LIBS
}
${
OpenCV_FEATURES_LIBS
}
${
OpenCV_FLANN_LIBS
}
${
OpenCV_VIDEO_LIBS
}
${
OpenCV_IMGPROC_LIBS
}
${
OpenCV_CORE_LIBS
}
)
endif
()
if
(
ANDROID
)
find_library
(
OpenCV_HAL_LIBS NAMES
"opencv_hal"
PATHS
${
CMAKE_EXTERNAL_DEPS
}
/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
)
set
(
OpenCV_LIBRARIES
${
OpenCV_LIBRARIES
}
${
OpenCV_HAL_LIBS
}
)
endif
()
if
(
APPLE
)
if
(
MACPORTS
)
find_package
(
OpenCV REQUIRED core calib3d features2d imgproc flann video PATHS /opt/local NO_DEFAULT_PATH
)
else
()
find_package
(
OpenCV REQUIRED core calib3d features2d imgproc flann video PATHS
"/usr/local/opt/opencv@3"
"/usr/local"
NO_DEFAULT_PATH
)
endif
()
endif
()
lib/CMakeLists.txt
View file @
02b52011
...
@@ -691,7 +691,7 @@ endif()
...
@@ -691,7 +691,7 @@ endif()
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Calibration && AutoCrop && CameraAmbisonics
# Calibration && AutoCrop && CameraAmbisonics
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
find_package
(
OpenCV
)
find_package
(
OpenCV
REQUIRED
)
add_subdirectory
(
src/calibration
)
add_subdirectory
(
src/calibration
)
add_subdirectory
(
src/autocrop
)
add_subdirectory
(
src/autocrop
)
...
...
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