File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,7 +138,10 @@ set(OPENCV_LIBRARY_DIR
138138 "${OPENCV_INSTALL_DIR} /${OPENCV_INSTALL_BINARIES_PREFIX}${CMAKE_INSTALL_LIBDIR} " )
139139set (OPENCV_RUNTIME_DIR
140140 "${OPENCV_INSTALL_DIR} /${OPENCV_INSTALL_BINARIES_PREFIX}${CMAKE_INSTALL_BINDIR} " )
141- set (OPENCV_INCLUDE_DIR "${OPENCV_INSTALL_DIR} /include/opencv4" )
141+ set (OPENCV_INCLUDE_DIRS
142+ "${OPENCV_INSTALL_DIR} /include"
143+ "${OPENCV_INSTALL_DIR} /include/opencv4"
144+ )
142145
143146if (WIN32 )
144147 set (OPENCV_WORLD_IMPLIB
@@ -173,7 +176,7 @@ add_library(opencv_world_external SHARED IMPORTED GLOBAL)
173176add_dependencies (opencv_world_external opencv_external )
174177set_target_properties (opencv_world_external PROPERTIES
175178 IMPORTED_LOCATION "${OPENCV_WORLD_RUNTIME} "
176- INTERFACE_INCLUDE_DIRECTORIES "${OPENCV_INCLUDE_DIR } "
179+ INTERFACE_INCLUDE_DIRECTORIES "${OPENCV_INCLUDE_DIRS } "
177180)
178181
179182if (WIN32 )
@@ -184,7 +187,7 @@ endif()
184187
185188add_library (OpenCV_unified INTERFACE )
186189add_dependencies (OpenCV_unified opencv_external )
187- target_include_directories (OpenCV_unified INTERFACE " ${OPENCV_INCLUDE_DIR} " )
190+ target_include_directories (OpenCV_unified INTERFACE ${OPENCV_INCLUDE_DIRS} )
188191target_link_libraries (OpenCV_unified INTERFACE opencv_world_external )
189192
190193if (CMAKE_BUILD_RPATH )
You can’t perform that action at this time.
0 commit comments