当前位置:网站首页>CMake指定OpenCV版本
CMake指定OpenCV版本
2022-07-25 14:59:00 【洪流之源】
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

Niuke multi school E G J L

Share a department design method that avoids recursion

easygui使用的语法总结

Realsense ROS installation configuration introduction and problem solving

I2C device driver hierarchy

Go language founder leaves Google

System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏

"How to use" decorator mode

44 新浪导航 ,小米边栏 练习
随机推荐
As methods for viewing and excluding dependencies
LeetCode_字符串_中等_151.颠倒字符串中的单词
[Nacos] what does nacosclient do during service registration
The input input box of H5 page pops up the numeric keypad, which needs to support decimal points
"Ask every day" what is volatile
Spark 参数配置的几种方法
安装EntityFramework方法
(原创)自定义一个滚屏的RecyclerView
How many ways can you assign initial values to a two-dimensional array?
Kibana operation es
Gameframework making games (II) making UI interface
[C topic] the penultimate node in the Niuke linked list
oracle_12505错误解决方法
基于AMD EPYC服务器的EDA芯片设计解决方案
"How to use" observer mode
Sudo rosdep init error ROS installation problem solution
Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
Yes, UDP protocol can also be used to request DNS server
Log4j2 basic configuration
[nuxt 3] (XI) transmission & module