mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Changed the message that cmake displays when opencv isn't found so users don't get confused.
This commit is contained in:
parent
2b50150076
commit
1123eaa134
@ -121,12 +121,14 @@ add_example(video_tracking_ex)
|
||||
add_example(xml_parser_ex)
|
||||
|
||||
|
||||
find_package(OpenCV)
|
||||
find_package(OpenCV QUIET)
|
||||
if (OpenCV_FOUND)
|
||||
include_directories(${OpenCV_INCLUDE_DIRS})
|
||||
|
||||
ADD_EXECUTABLE(webcam_face_pose_ex webcam_face_pose_ex.cpp)
|
||||
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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user