11 lines
289 B
CMake
11 lines
289 B
CMake
Find_Package(OpenCV)
|
|
if (NOT OpenCV_FOUND)
|
|
FetchContent_Declare(
|
|
opencv
|
|
EXCLUDE_FROM_ALL
|
|
GIT_REPOSITORY https://github.com/opencv/opencv.git
|
|
GIT_TAG v4.5.0
|
|
GIT_SHALLOW TRUE
|
|
)
|
|
FetchContent_MakeAvailable(opencv)
|
|
endif() |