summaryrefslogtreecommitdiffhomepage
path: root/cv/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cv/CMakeLists.txt')
-rw-r--r--cv/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/cv/CMakeLists.txt b/cv/CMakeLists.txt
index 67a27ee9..61247634 100644
--- a/cv/CMakeLists.txt
+++ b/cv/CMakeLists.txt
@@ -1,6 +1,7 @@
find_package(OpenCV 3.0 QUIET COMPONENTS ${opencv-modules})
if(OpenCV_FOUND)
otr_module(cv STATIC)
- target_link_libraries(opentrack-cv ${OpenCV_LIBS})
+ set(modules opencv_core opencv_videoio)
+ target_link_libraries(opentrack-cv ${modules})
target_include_directories(opentrack-cv SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
endif()