diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-25 06:01:16 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 11:22:50 +0200 |
commit | 6c6a12df66cb0afd56630f9676f81e9d6c205a0f (patch) | |
tree | b06ec29e089782808310424b06e8569d35e33c88 /tracker-pt | |
parent | 56766097bd5c90b564d833edc5c3c0e67be43dde (diff) |
tracker/pt: only link opencv_imgproc when needed
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tracker-pt/module/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/CMakeLists.txt b/tracker-pt/CMakeLists.txt index 078cd4bc..76506c5e 100644 --- a/tracker-pt/CMakeLists.txt +++ b/tracker-pt/CMakeLists.txt @@ -3,7 +3,7 @@ find_package(OpenCV QUIET) if(OpenCV_FOUND) otr_module(tracker-pt-base STATIC) target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) - target_link_libraries(${self} opencv_imgproc opentrack-cv opencv_core opentrack-video) + target_link_libraries(${self} opentrack-cv opencv_core opentrack-video) set_property(TARGET ${self} PROPERTY OUTPUT_NAME "pt-base") endif() add_subdirectory(module) diff --git a/tracker-pt/module/CMakeLists.txt b/tracker-pt/module/CMakeLists.txt index f7a6cc7f..cc16cba1 100644 --- a/tracker-pt/module/CMakeLists.txt +++ b/tracker-pt/module/CMakeLists.txt @@ -2,6 +2,6 @@ include(opentrack-opencv) find_package(OpenCV QUIET) if(OpenCV_FOUND) otr_module(tracker-pt) - target_link_libraries(${self} opentrack-tracker-pt-base) + target_link_libraries(${self} opencv_imgproc opentrack-tracker-pt-base) target_include_directories(${self} PUBLIC "${CMAKE_SOURCE_DIR}/tracker-pt") endif() |