diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-02 11:56:19 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-02 11:56:19 +0100 |
commit | bd54385106031f268ae7005989955e51179b6df0 (patch) | |
tree | 8a88ddc278fb2b0a5efdd37327f3a3faa1f30679 | |
parent | 62796cfe458305f629479bcdb4bb5b0aa74a5732 (diff) |
tracker/aruco: don't break build if opencv not found
-rw-r--r-- | tracker-aruco/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt index 8f3e9e7c..c0b50bee 100644 --- a/tracker-aruco/CMakeLists.txt +++ b/tracker-aruco/CMakeLists.txt @@ -1,6 +1,6 @@ find_package(OpenCV 3.0 QUIET COMPONENTS ${opencv-modules}) set(SDK_ARUCO_LIBPATH "" CACHE FILEPATH "Aruco paper marker tracker static library path") -if(SDK_ARUCO_LIBPATH) +if(SDK_ARUCO_LIBPATH AND OpenCV_FOUND) opentrack_boilerplate(opentrack-tracker-aruco) target_link_libraries(opentrack-tracker-aruco opentrack-cv ${SDK_ARUCO_LIBPATH} ${OpenCV_LIBS}) target_include_directories(opentrack-tracker-aruco SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) |