File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,17 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
8
8
set (CMAKE_CXX_STANDARD 17 )
9
9
endif ()
10
10
11
- include (FetchContent )
12
- FetchContent_Declare (rerun_sdk URL https://github.com/rerun-io/rerun/releases/download/0.15.1/rerun_cpp_sdk.zip )
13
- FetchContent_MakeAvailable (rerun_sdk )
11
+ set (RERUN_CPP_URL "https://github.com/rerun-io/rerun/releases/download/0.15.1/rerun_cpp_sdk.zip" CACHE STRING "URL to the rerun_cpp zip." )
12
+ option (RERUN_FIND_PACKAGE "Whether to use find_package to find a preinstalled rerun package (instead of using FetchContent)." OFF )
13
+
14
+ if (RERUN_FIND_PACKAGE )
15
+ find_package (rerun_sdk REQUIRED )
16
+ else ()
17
+ # Download the rerun_sdk
18
+ include (FetchContent )
19
+ FetchContent_Declare (rerun_sdk URL ${RERUN_CPP_URL} )
20
+ FetchContent_MakeAvailable (rerun_sdk )
21
+ endif ()
14
22
15
23
find_package (Eigen3 REQUIRED )
16
24
find_package (OpenCV REQUIRED )
You can’t perform that action at this time.
0 commit comments