diff --git a/CMakeLists.txt b/CMakeLists.txt index ce8fdf4..1e99ea6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,11 @@ find_package(JPEG REQUIRED) include_directories(${JPEG_INCLUDE_DIR}) target_link_libraries(lycon ${JPEG_LIBRARY}) +# OpenCV +find_package(OpenCV REQUIRED) +include_directories(${OpenCV_INCLUDE_DIR}) +target_link_libraries(lycon ${OpenCV_LIBS}) + # The Python extension if (LYCON_BUILD_PYTHON) include(cmake/LocatePythonLibs.cmake) diff --git a/src/lycon/mat/convert.h b/src/lycon/mat/convert.h index 9f8e4a4..567fc8a 100644 --- a/src/lycon/mat/convert.h +++ b/src/lycon/mat/convert.h @@ -1,6 +1,9 @@ #pragma once #include "lycon/mat/shared.h" +#include "opencv2/core/neon_utils.h" + +using namespace cv; namespace lycon { diff --git a/src/lycon/transform/resize.h b/src/lycon/transform/resize.h index dd6dd10..501fad4 100644 --- a/src/lycon/transform/resize.h +++ b/src/lycon/transform/resize.h @@ -1,6 +1,9 @@ #pragma once #include "lycon/mat/mat.h" +#include "opencv2/core/neon_utils.h" + +using namespace cv; namespace lycon {