Skip to content

Instantly share code, notes, and snippets.

@zihaomu
Created July 15, 2022 07:31
Show Gist options
  • Save zihaomu/5419cf9b4ed5966589f5b8f08e514e5c to your computer and use it in GitHub Desktop.
Save zihaomu/5419cf9b4ed5966589f5b8f08e514e5c to your computer and use it in GitHub Desktop.
CMakeLists OpenCV
cmake_minimum_required(VERSION 3.22)
project(testOrbbecDevice)
set(CMAKE_CXX_STANDARD 14)
set(OpenCV_DIR "/opencv/build")
find_package(OpenCV REQUIRED)
include_directories(
${PROJECT_SOURCE_DIR}/
${OpenCV_INCLUDE_DIRS}
)
add_executable(testOrbbecDevice main.cpp)
target_link_libraries(testOrbbecDevice ${OpenCV_LIBS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment