当前位置:网站首页>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}
)
边栏推荐
- Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
- Gameframework making games (II) making UI interface
- "How to use" decorator mode
- Quickly set up dobbo demo
- How many ways can you assign initial values to a two-dimensional array?
- Content type corresponding to office file
- 变分(Calculus of variations)的概念及运算规则
- QT connect, signal, slot and lambda comparison
- SSH服务器拒绝了密码
- English语法_不定代词 - other / another
猜你喜欢

The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%

LeetCode-198-打家劫舍

English grammar_ Indefinite pronoun - other / other

Award winning interaction | 7.19 database upgrade plan practical Summit: industry leaders gather, why do they come?

oracle_12505错误解决方法

Leetcode combination sum + pruning

Niuke multi school E G J L

Live classroom system 05 background management system

L1 and L2 regularization
![[Nacos] what does nacosclient do during service registration](/img/76/3c2e8f9ba19e36d9581f34fda65923.png)
[Nacos] what does nacosclient do during service registration
随机推荐
直播课堂系统05-后台管理系统
IP地址分类,判断一个网段是子网超网
"Ask every day" how locksupport realizes thread waiting and wakeup
[C topic] Li Kou 88. merge two ordered arrays
06、类神经网络
32 chrome调试工具的使用
The concept and operation rules of calculus of variations
Gameframework making games (II) making UI interface
51 single chip microcomputer learning notes (2)
27 选择器的分类
Leetcode-198- house raiding
Add the jar package under lib directory to the project in idea
Copy files / folders through Robocopy
45padding不会撑开盒子的情况
As methods for viewing and excluding dependencies
43 盒子模型
"Ask every day" reentrantlock locks and unlocks
@Scheduled source code analysis
006操作符简介
BigDecimal rounds the data