summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
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 /tracker-pt
parent0739d5b595be9492c1e574192eba12174111e52c (diff)
cmake: lessen logspam with no opencv
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/tracker-pt/CMakeLists.txt b/tracker-pt/CMakeLists.txt
index 94b04437..36710ecf 100644
--- a/tracker-pt/CMakeLists.txt
+++ b/tracker-pt/CMakeLists.txt
@@ -1,5 +1,7 @@
-find_package(OpenCV 3.0)
-opentrack_boilerplate(opentrack-tracker-pt)
-target_link_libraries(opentrack-tracker-pt ${OpenCV_LIBS})
-target_include_directories(opentrack-tracker-pt SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
-link_with_dinput8(opentrack-tracker-pt)
+find_package(OpenCV 3.0 QUIET)
+if(OpenCV_FOUND)
+ opentrack_boilerplate(opentrack-tracker-pt)
+ target_link_libraries(opentrack-tracker-pt ${OpenCV_LIBS})
+ target_include_directories(opentrack-tracker-pt SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
+ link_with_dinput8(opentrack-tracker-pt)
+endif()