diff options
Diffstat (limited to 'tracker-pt/CMakeLists.txt')
-rw-r--r-- | tracker-pt/CMakeLists.txt | 12 |
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() |