diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c7165da..21a9adae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,30 +163,27 @@ if (WIVRN_BUILD_DISSECTOR) endif() # Common dependencies -FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.2.0.tar.gz) -FetchContent_Declare(boost URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz) +FetchContent_Declare(boostpfr EXCLUDE_FROM_ALL URL https://github.com/boostorg/pfr/archive/refs/tags/2.2.0.tar.gz) +FetchContent_Declare(boost EXCLUDE_FROM_ALL URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz) # Client dependencies -FetchContent_Declare(simdjson URL https://github.com/simdjson/simdjson/archive/refs/tags/v3.9.3.tar.gz) -FetchContent_Declare(fastgltf URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.7.1.tar.gz) -FetchContent_Declare(glm URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz) -FetchContent_Declare(openxr_loader URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.0.34.tar.gz) -FetchContent_Declare(spdlog URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz) -FetchContent_Declare(stb URL https://github.com/nothings/stb/archive/refs/heads/master.zip) -FetchContent_Declare(libktx URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v4.3.0.tar.gz) -FetchContent_Declare(implot URL https://github.com/epezent/implot/archive/refs/tags/v0.16.tar.gz) +FetchContent_Declare(simdjson EXCLUDE_FROM_ALL URL https://github.com/simdjson/simdjson/archive/refs/tags/v3.9.3.tar.gz) +FetchContent_Declare(fastgltf EXCLUDE_FROM_ALL URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.7.1.tar.gz) +FetchContent_Declare(glm EXCLUDE_FROM_ALL URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz) +FetchContent_Declare(openxr_loader EXCLUDE_FROM_ALL URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.0.34.tar.gz) +FetchContent_Declare(spdlog EXCLUDE_FROM_ALL URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz) +FetchContent_Declare(stb EXCLUDE_FROM_ALL URL https://github.com/nothings/stb/archive/refs/heads/master.zip) +FetchContent_Declare(libktx EXCLUDE_FROM_ALL URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v4.3.0.tar.gz) +FetchContent_Declare(implot EXCLUDE_FROM_ALL URL https://github.com/epezent/implot/archive/refs/tags/v0.16.tar.gz) +FetchContent_Declare(imgui EXCLUDE_FROM_ALL URL https://github.com/ocornut/imgui/archive/refs/tags/v1.90.1.tar.gz) +# Use the docking branch of imgui to use multi-viewport +# FetchContent_Declare(imgui EXCLUDE_FROM_ALL URL https://github.com/ocornut/imgui/archive/ce0d0ac8298ce164b5d862577e8b087d92f6e90e.zip) # Server dependencies FetchContent_Declare(monado GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado GIT_TAG 598080453545c6bf313829e5780ffb7dde9b79dc PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${CMAKE_CURRENT_LIST_DIR}/patches/monado/ - ) - -FetchContent_Declare(imgui - URL https://github.com/ocornut/imgui/archive/refs/tags/v1.90.1.tar.gz -# Use the docking branch of imgui to use multi-viewport - # GIT_REPOSITORY https://github.com/ocornut/imgui.git - # GIT_TAG ce0d0ac8298ce164b5d862577e8b087d92f6e90e + EXCLUDE_FROM_ALL ) add_subdirectory(external) diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index fb845aa1..6da090d6 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -54,15 +54,7 @@ set(XRT_IPC_MSG_SOCK_FILENAME "wivrn_comp_ipc" CACHE STRING "Service socket set(XRT_IPC_SERVICE_PID_FILENAME "wivrn.pid" CACHE STRING "Service pidfile filename") set(XRT_OXR_RUNTIME_SUFFIX "wivrn" CACHE STRING "OpenXR client library suffix") -FetchContent_GetProperties(monado) -if(NOT monado_POPULATED) - # Fetch the content using previously declared details - FetchContent_Populate(monado) - - # Bring the populated content into the build - add_subdirectory(${monado_SOURCE_DIR} ${monado_BINARY_DIR} EXCLUDE_FROM_ALL) -endif() - +FetchContent_MakeAvailable(monado) add_executable(wivrn-server accept_connection.cpp