summaryrefslogtreecommitdiffhomepage
path: root/filter-kalman
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-30 10:07:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-30 10:07:13 +0100
commit8318ee4d821a4826b8e80369f499b3758abe8f4c (patch)
treeb27ddaa98a272e77c0052f8e6bd49dc72e9b0b92 /filter-kalman
parent0739d5b595be9492c1e574192eba12174111e52c (diff)
cmake: lessen logspam with no opencv
Diffstat (limited to 'filter-kalman')
-rw-r--r--filter-kalman/CMakeLists.txt10
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()