当前位置:网站首页>Cmake specify opencv version
Cmake specify opencv version
2022-07-25 15:02:00 【Source of torrent】
cmake_minimum_required(VERSION 3.4)
project(xxxx)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 -std=c++11")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/workspace/bin)
set(OpenCV_DIR opencv/lib/cmake/opencv4)
find_package(OpenCV 4.5 REQUIRED)
message(STATUS "OpenCV_DIR = ${OpenCV_DIR}")
message(STATUS "OpenCV_INCLUDE_DIRS = ${OpenCV_INCLUDE_DIRS}")
message(STATUS "OpenCV_LIBS = ${OpenCV_LIBS}")
set(OPENCV_LIBS
opencv_core
opencv_highgui
opencv_imgproc
opencv_imgcodecs
opencv_video
opencv_videoio
)
add_executable(pro src/main.cpp)
target_link_libraries(
pro
${OPENCV_LIBS}
)
边栏推荐
- (原创)自定义一个滚屏的RecyclerView
- [C题目]牛客 链表中倒数第k个结点
- SSM Advanced Integration
- Reprint ---- how to read the code?
- Vs2010添加wap移动窗体模板
- Ssh server rejected password
- [Android] recyclerview caching mechanism, is it really difficult to understand? What level of cache is it?
- C language and SQL Server database technology
- SSH服务器拒绝了密码
- Examples of bio, NiO, AIO
猜你喜欢

"How to use" agent mode

37 element mode (inline element, block element, inline block element)

Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer

I2C设备驱动程序的层次结构

Syntax summary of easygui

【MySQL系列】-索引知多少

43 box model
![Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]](/img/c9/8f8f0934111f7ae8f8abd656d92f12.png)
Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]

D2. picking carrots (hard version) (one question per day)

Nacos2.1.0 cluster construction
随机推荐
006操作符简介
云安全技术发展综述
spark参数调整调优
基于AMD EPYC服务器的EDA芯片设计解决方案
The input input box of H5 page pops up the numeric keypad, which needs to support decimal points
LeetCode_字符串_中等_151.颠倒字符串中的单词
Ssh server rejected password
006 operator introduction
I hope some suggestions on SQL optimization can help you who are tortured by SQL like me
Several methods of spark parameter configuration
[C题目]牛客 链表中倒数第k个结点
LeetCode_ String_ Medium_ 151. Reverse the words in the string
I2C设备驱动程序的层次结构
English grammar_ Indefinite pronoun - other / other
Nacos2.1.0 cluster construction
awk从入门到入土(21)awk脚本调试
06. Neural network like
软件测试 -- 1 软件测试知识大纲梳理
冈萨雷斯 数字图像处理 第一章绪论
IP地址分类,判断一个网段是子网超网