cmake_minimum_required(VERSION 3.5)#cmake版本 project( DisplayImage )#項目名稱 find_package( OpenCV REQUIRED )#找到opencv源 add_executable( DisplayImage main.cpp )# target_link_libraries( DisplayImage ${OpenCV_LIBS} )#添加opencv連接選項
cmake .ui
makespa