12345678910111213141516171819202122232425 |
- cmake_minimum_required(VERSION 3.10)
- project(FeedLevelDetection)
- # 设置C++标准
- set(CMAKE_CXX_STANDARD 17)
- # 查找OpenCV包
- find_package(OpenCV REQUIRED)
- # 包含头文件目录
- include_directories(
- ${OpenCV_INCLUDE_DIRS}
- include
- )
- # 添加可执行文件
- add_executable(feed_level_detection
- src/FeedLevelDetector.cpp
- main.cpp
- )
- # 链接OpenCV库
- target_link_libraries(feed_level_detection
- ${OpenCV_LIBS}
- )
|