diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-24 20:43:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-24 20:44:38 +0200 |
commit | ae76c229f0466034d64bcc1d3bab9dd47eb2f90a (patch) | |
tree | 63140a8d7da58e8920e2a283975d7e1f0e974a4f /tracker-easy/CMakeLists.txt | |
parent | 766ab9643471635dda821c050f854777fc67afe0 (diff) |
tracker/easy: add check for other modules
Diffstat (limited to 'tracker-easy/CMakeLists.txt')
-rw-r--r-- | tracker-easy/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tracker-easy/CMakeLists.txt b/tracker-easy/CMakeLists.txt index ed95a560..ef7274a7 100644 --- a/tracker-easy/CMakeLists.txt +++ b/tracker-easy/CMakeLists.txt @@ -7,9 +7,13 @@ if(OpenCV_FOUND) CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${OpenCV_INCLUDE_DIRS}" "-DCXX_STANDARD=17" "-DCXX_STANDARD_REQUIRED=1" OUTPUT_VARIABLE krap) - if(tracker-easy-ocv-check) + if(tracker-easy_ocv-check) + foreach(k video highgui) + otr_install_lib("opencv_${k}" "${opentrack-hier-pfx}") + endforeach() + otr_module(tracker-easy) target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) - target_link_libraries(${self} opencv_core opencv_imgproc opencv_calib3d opencv_video opentrack-cv opentrack-video) + target_link_libraries(${self} opencv_core opencv_imgproc opencv_calib3d opencv_video opencv_highgui opentrack-cv opentrack-video) endif() endif() |