Skip to content

Commit

Permalink
[rerun] Add rerun SDK dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 22, 2024
1 parent 7e58561 commit cad7590
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ endif()

option(DART_BUILD_WHEELS "Indicate building dartpy for wheels" OFF)

option(DART_BUILD_RERUN "Build with Rerun SDK" OFF)
option(DART_USE_SYSTEM_RERUN "Use system Rerun SDK" OFF)

#===============================================================================
# Find dependencies
#===============================================================================
Expand Down
13 changes: 12 additions & 1 deletion cmake/DARTFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,22 @@ option(DART_SKIP_spdlog "If ON, do not use spdlog even if it is found." OFF)
mark_as_advanced(DART_SKIP_spdlog)
dart_find_package(spdlog)

if(DART_BUILD_RERUN)
if(DART_USE_SYSTEM_RERUN)
find_package(rerun REQUIRED)
else()
include(FetchContent)
FetchContent_Declare(rerun_sdk
URL https://github.com/rerun-io/rerun/releases/download/0.14.1/rerun_cpp_sdk.zip
)
FetchContent_MakeAvailable(rerun_sdk)
endif()
endif()

#--------------------
# Misc. dependencies
#--------------------

# Doxygen
find_package(Doxygen QUIET)
dart_check_optional_package(DOXYGEN "generating API documentation" "doxygen")

0 comments on commit cad7590

Please sign in to comment.