Put all FetchContent_declare in one place

This commit is contained in:
Guillaume Meunier
2022-11-13 13:00:52 +01:00
parent f0cb88d32c
commit 3b5f351e28
4 changed files with 9 additions and 19 deletions
+9 -7
View File
@@ -62,8 +62,16 @@ if(ANDROID)
android_ndk_import_module_native_app_glue()
endif()
FetchContent_Declare(spdlog URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz)
FetchContent_Declare(glm URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz)
FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive/refs/tags/v2.6.3.tar.gz)
FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz)
FetchContent_MakeAvailable(boostpfr)
FetchContent_Declare(monado
GIT_REPOSITORY https://gitlab.freedesktop.org/xytovl/monado
GIT_TAG 9044e870696f39ace2293488ad5e663f366031a6
)
add_subdirectory(common)
@@ -74,9 +82,3 @@ endif()
if (WIVRN_BUILD_SERVER)
add_subdirectory(server)
endif()
get_property(importTargets DIRECTORY "${CMAKE_SOURCE_DIR}" PROPERTY IMPORTED_TARGETS)
get_property(buildsystemTargets DIRECTORY "${CMAKE_SOURCE_DIR}" PROPERTY BUILDSYSTEM_TARGETS)
message("Imported targets: ${importTargets}")
message("Build system targets: ${buildsystemTargets}")
-4
View File
@@ -6,10 +6,6 @@ set(TINYGLTF_BUILD_BUILDER_EXAMPLE OFF)
set(TINYGLTF_HEADER_ONLY OFF)
set(TINYGLTF_INSTALL OFF)
FetchContent_Declare(spdlog URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz)
FetchContent_Declare(glm URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz)
FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive/refs/tags/v2.6.3.tar.gz)
FetchContent_MakeAvailable(spdlog glm tinygltf)
include(FreetypeHarfbuzz)
-2
View File
@@ -1,6 +1,4 @@
FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz)
FetchContent_MakeAvailable(boostpfr)
if (GIT_VERSION)
-6
View File
@@ -38,11 +38,6 @@ set(BUILD_TESTING OFF)
set(XRT_IPC_MSG_SOCK_FILENAME "wivrn_comp_ipc")
set(RUNTIME_BARE_SUFFIX "wivrn")
FetchContent_Declare(monado
GIT_REPOSITORY https://gitlab.freedesktop.org/xytovl/monado
GIT_TAG 9044e870696f39ace2293488ad5e663f366031a6
)
FetchContent_GetProperties(monado)
if(NOT monado_POPULATED)
# Fetch the content using previously declared details
@@ -59,7 +54,6 @@ add_executable(monado-wivrn
hostname.cpp
avahi_publisher.cpp
driver/encoder_settings.cpp
driver/wivrn_hmd.cpp
driver/wivrn_comp_target.cpp