Created
July 15, 2022 07:31
-
-
Save zihaomu/5419cf9b4ed5966589f5b8f08e514e5c to your computer and use it in GitHub Desktop.
CMakeLists OpenCV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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