diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-30 10:07:13 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-30 10:07:13 +0100 |
commit | 8318ee4d821a4826b8e80369f499b3758abe8f4c (patch) | |
tree | b27ddaa98a272e77c0052f8e6bd49dc72e9b0b92 | |
parent | 0739d5b595be9492c1e574192eba12174111e52c (diff) |
cmake: lessen logspam with no opencv
-rw-r--r-- | filter-kalman/CMakeLists.txt | 10 | ||||
-rw-r--r-- | tracker-aruco/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tracker-ht/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tracker-pt/CMakeLists.txt | 12 |
4 files changed, 15 insertions, 11 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() diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt index ed52eee6..70d742ee 100644 --- a/tracker-aruco/CMakeLists.txt +++ b/tracker-aruco/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(OpenCV 3.0) +find_package(OpenCV 3.0 QUIET) set(SDK_ARUCO_LIBPATH "" CACHE FILEPATH "Aruco paper marker tracker static library path") if(SDK_ARUCO_LIBPATH) opentrack_boilerplate(opentrack-tracker-aruco) diff --git a/tracker-ht/CMakeLists.txt b/tracker-ht/CMakeLists.txt index 74fd9056..248a113e 100644 --- a/tracker-ht/CMakeLists.txt +++ b/tracker-ht/CMakeLists.txt @@ -1,6 +1,6 @@ set(SDK_HT "" CACHE FILEPATH "Path to headtracker library") set(SDK_HT_FLANDMARK "" CACHE FILEPATH "Path to flandmark library for headtracker") -find_package(OpenCV 3.0) +find_package(OpenCV 3.0 QUIET) if(OpenCV_FOUND) if(SDK_HT AND SDK_HT_FLANDMARK) opentrack_boilerplate(opentrack-tracker-ht) 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() |