diff options
Diffstat (limited to 'filter-kalman')
-rw-r--r-- | filter-kalman/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/filter-kalman/CMakeLists.txt b/filter-kalman/CMakeLists.txt index 666a35db..e2796c11 100644 --- a/filter-kalman/CMakeLists.txt +++ b/filter-kalman/CMakeLists.txt @@ -1,4 +1,6 @@ -find_package(OpenCV 3.0) -opentrack_boilerplate(opentrack-filter-kalman) -target_link_libraries(opentrack-filter-kalman ${OpenCV_LIBS}) -target_include_directories(opentrack-filter-kalman SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) +find_package(OpenCV 3.0 QUIET) +if(OpenCV_FOUND) + opentrack_boilerplate(opentrack-filter-kalman) + target_link_libraries(opentrack-filter-kalman ${OpenCV_LIBS}) + target_include_directories(opentrack-filter-kalman SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) +endif() |