fix(cmake): include opencv dirs if found

This commit is contained in:
John Zhao 2019-01-03 17:53:56 +08:00
parent 44945687ce
commit 097438da20

View File

@ -47,6 +47,10 @@ else()
set(OpenCV_LIB_SEARCH_PATH "${OpenCV_LIB_PATH}") set(OpenCV_LIB_SEARCH_PATH "${OpenCV_LIB_PATH}")
endif() endif()
include_directories(
${OpenCV_INCLUDE_DIRS}
)
else() else()
set(WITH_OPENCV FALSE) set(WITH_OPENCV FALSE)