16 lines
441 B
CMake
16 lines
441 B
CMake
Find_Package(Boost QUIET COMPONENTS regex)
|
|
include(FetchContent)
|
|
|
|
if(NOT DEFINED OPENCV_REPO)
|
|
set(OPENCV_REPO https://github.com/opencv/opencv.git)
|
|
endif ()
|
|
|
|
if (NOT Boost_FOUND)
|
|
set(BOOST_INCLUDE_LIBRARIES regex)
|
|
set(BOOST_ENABLE_CMAKE ON)
|
|
FetchContent_Declare(
|
|
Boost
|
|
URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz
|
|
)
|
|
FetchContent_MakeAvailable(Boost)
|
|
endif() |