Lines 1-6
Link Here
|
1 |
--- CMakeLists.txt.orig 2018-05-02 21:05:51.508265000 +0000 |
1 |
--- CMakeLists.txt.orig 2016-01-30 17:04:48 UTC |
2 |
+++ CMakeLists.txt 2018-05-02 21:05:54.408309000 +0000 |
2 |
+++ CMakeLists.txt |
3 |
@@ -22,7 +22,7 @@ else() |
3 |
@@ -5,7 +5,7 @@ add_executable(conv conv.c) |
|
|
4 |
find_package(PkgConfig) |
5 |
include(CheckIncludeFileCXX) |
6 |
|
7 |
-pkg_check_modules(OPENCV_PKG opencv) |
8 |
+pkg_check_modules(OPENCV_PKG opencv4) |
9 |
|
10 |
string(TIMESTAMP TS) |
11 |
add_definitions(-DBUILD_TS="${TS}") |
12 |
@@ -22,9 +22,9 @@ else() |
4 |
link_directories(${OPENCV_PREFIX}/lib) |
13 |
link_directories(${OPENCV_PREFIX}/lib) |
5 |
endif() |
14 |
endif() |
6 |
|
15 |
|
Lines 7-11
Link Here
|
7 |
-check_include_file_cxx("opencv2/opencv.hpp" HAVE_OPENCV) |
16 |
-check_include_file_cxx("opencv2/opencv.hpp" HAVE_OPENCV) |
8 |
+check_include_file_cxx("opencv2/videoio.hpp" HAVE_OPENCV) |
17 |
+check_include_file_cxx("opencv2/videoio.hpp" HAVE_OPENCV) |
9 |
find_library(IMGCODECS_LIBRARY NAMES opencv_imgcodecs opencv_highgui |
18 |
find_library(IMGCODECS_LIBRARY NAMES opencv_imgcodecs opencv_highgui |
10 |
HINTS ${OPENCV_PKG_INCLUDE_DIRS} ${OPENCV_PREFIX}/lib) |
19 |
- HINTS ${OPENCV_PKG_INCLUDE_DIRS} ${OPENCV_PREFIX}/lib) |
|
|
20 |
+ HINTS ${OPENCV_PKG_INCLUDE_DIRS} ${OPENCV_PKG_LIBRARY_DIRS}) |
11 |
|
21 |
|
|
|
22 |
if(HAVE_OPENCV) |
23 |
add_definitions(-DHAVE_OPENCV) |