Commit 1123eaa1 authored by Davis King's avatar Davis King

Changed the message that cmake displays when opencv isn't found so users don't get confused.

parent 2b501500
...@@ -121,12 +121,14 @@ add_example(video_tracking_ex) ...@@ -121,12 +121,14 @@ add_example(video_tracking_ex)
add_example(xml_parser_ex) add_example(xml_parser_ex)
find_package(OpenCV) find_package(OpenCV QUIET)
if (OpenCV_FOUND) if (OpenCV_FOUND)
include_directories(${OpenCV_INCLUDE_DIRS}) include_directories(${OpenCV_INCLUDE_DIRS})
ADD_EXECUTABLE(webcam_face_pose_ex webcam_face_pose_ex.cpp) ADD_EXECUTABLE(webcam_face_pose_ex webcam_face_pose_ex.cpp)
TARGET_LINK_LIBRARIES(webcam_face_pose_ex dlib ${OpenCV_LIBS} ) TARGET_LINK_LIBRARIES(webcam_face_pose_ex dlib ${OpenCV_LIBS} )
else()
message("OpenCV not found, so we won't build the webcam_face_pose_ex example.")
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment