# demo2 add_executable(opencv_demo2 opencv_demo2.cpp) # 链接 OpenCV 库 target_link_libraries(opencv_demo2 ${OpenCV_LIBS})