Allow usage of mirrors for all dependencies
This commit is contained in:
6
3rdParty/assimp/CMakeLists.txt
vendored
6
3rdParty/assimp/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED ASSIMP_REPO)
|
||||
set(ASSIMP_REPO https://github.com/assimp/assimp.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
assimp
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/assimp/assimp.git
|
||||
GIT_REPOSITORY ${ASSIMP_REPO}
|
||||
GIT_TAG v5.0.1
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
6
3rdParty/eigen/CMakeLists.txt
vendored
6
3rdParty/eigen/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED EIGEN_REPO)
|
||||
set(EIGEN_REPO https://gitlab.com/libeigen/eigen.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
eigen
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
|
||||
GIT_REPOSITORY ${EIGEN_REPO}
|
||||
GIT_TAG master
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
6
3rdParty/ftxui/CMakeLists.txt
vendored
6
3rdParty/ftxui/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED FTXUI_REPO)
|
||||
set(FTXUI_REPO https://github.com/ArthurSonzogni/ftxui.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
ftxui
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui.git
|
||||
GIT_REPOSITORY ${FTXUI_REPO}
|
||||
GIT_TAG v5.0.0
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
8
3rdParty/glfw/CMakeLists.txt
vendored
8
3rdParty/glfw/CMakeLists.txt
vendored
@@ -1,10 +1,14 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED GLFW_REPO)
|
||||
set(GLFW_REPO https://github.com/glfw/glfw.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
glfw
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/glfw/glfw.git
|
||||
GIT_TAG 3.3.2
|
||||
GIT_REPOSITORY ${GLFW_REPO}
|
||||
GIT_TAG 3.3.8
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
set(GLFW_BUILD_EXAMPLES OFF)
|
||||
|
||||
6
3rdParty/glm/CMakeLists.txt
vendored
6
3rdParty/glm/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED GLM_REPO)
|
||||
set(GLM_REPO https://github.com/g-truc/glm.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
glm
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/g-truc/glm.git
|
||||
GIT_REPOSITORY ${GLM_REPO}
|
||||
GIT_TAG 0.9.9.8
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
6
3rdParty/imgui/CMakeLists.txt
vendored
6
3rdParty/imgui/CMakeLists.txt
vendored
@@ -1,11 +1,15 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED IMGUI_REPO)
|
||||
set(IMGUI_REPO https://github.com/ocornut/imgui.git)
|
||||
endif ()
|
||||
|
||||
project(imgui_internal VERSION 1.0 LANGUAGES C CXX)
|
||||
|
||||
set(IMGUI_SRC_DIR ${CMAKE_BINARY_DIR}/3rdParty/imgui/imgui-src)
|
||||
|
||||
FetchContent_Populate(imgui
|
||||
GIT_REPOSITORY https://github.com/ocornut/imgui.git
|
||||
GIT_REPOSITORY ${IMGUI_REPO}
|
||||
GIT_SHALLOW TRUE
|
||||
GIT_TAG v1.90-docking
|
||||
SOURCE_DIR ${IMGUI_SRC_DIR}
|
||||
|
||||
21
3rdParty/libarchive/CMakeLists.txt
vendored
21
3rdParty/libarchive/CMakeLists.txt
vendored
@@ -2,8 +2,21 @@ cmake_minimum_required(VERSION 3.16)
|
||||
project(build_libarchive)
|
||||
include(ExternalProject)
|
||||
|
||||
if(NOT DEFINED ZLIB_REPO)
|
||||
set(ZLIB_REPO https://github.com/madler/zlib.git)
|
||||
endif ()
|
||||
if(NOT DEFINED ZSTD_REPO)
|
||||
set(ZSTD_REPO https://github.com/facebook/zstd)
|
||||
endif ()
|
||||
if(NOT DEFINED LZ4_REPO)
|
||||
set(LZ4_REPO https://github.com/lz4/lz4)
|
||||
endif ()
|
||||
if(NOT DEFINED LIBARCHIVE_REPO)
|
||||
set(LIBARCHIVE_REPO https://github.com/libarchive/libarchive.git)
|
||||
endif ()
|
||||
|
||||
ExternalProject_Add(zlib
|
||||
GIT_REPOSITORY https://github.com/madler/zlib.git
|
||||
GIT_REPOSITORY {ZLIB_REPO}
|
||||
GIT_TAG v1.2.11
|
||||
GIT_SHALLOW TRUE
|
||||
SOURCE_DIR zlib
|
||||
@@ -17,7 +30,7 @@ ExternalProject_Add(zlib
|
||||
)
|
||||
|
||||
ExternalProject_Add(zstd
|
||||
GIT_REPOSITORY https://github.com/facebook/zstd
|
||||
GIT_REPOSITORY ${ZSTD_REPO}
|
||||
GIT_TAG v1.5.1
|
||||
GIT_SHALLOW TRUE
|
||||
SOURCE_DIR zstd
|
||||
@@ -33,7 +46,7 @@ ExternalProject_Add(zstd
|
||||
)
|
||||
|
||||
ExternalProject_Add(lz4
|
||||
GIT_REPOSITORY https://github.com/lz4/lz4
|
||||
GIT_REPOSITORY ${LZ4_REPO}
|
||||
GIT_TAG v1.9.3
|
||||
GIT_SHALLOW TRUE
|
||||
SOURCE_DIR lz4
|
||||
@@ -50,7 +63,7 @@ ExternalProject_Add(lz4
|
||||
ExternalProject_Add(
|
||||
libarchive
|
||||
DEPENDS zlib zstd lz4
|
||||
GIT_REPOSITORY https://github.com/libarchive/libarchive.git
|
||||
GIT_REPOSITORY ${LIBARCHIVE_REPO}
|
||||
GIT_TAG v3.7.0
|
||||
GIT_SHALLOW TRUE
|
||||
SOURCE_DIR libarchive
|
||||
|
||||
6
3rdParty/libstud-uuid/CMakeLists.txt
vendored
6
3rdParty/libstud-uuid/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED LIBSTUD_REPO)
|
||||
set(LIBSTUD_REPO https://github.com/GeorgH93/libstud-uuid.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
libstud-uuid
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/GeorgH93/libstud-uuid.git
|
||||
GIT_REPOSITORY ${LIBSTUD_REPO}
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
|
||||
6
3rdParty/magic-enum/CMakeLists.txt
vendored
6
3rdParty/magic-enum/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED MAGICENUM_REPO)
|
||||
set(MAGICENUM_REPO https://github.com/Neargye/magic_enum.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
magic_enum
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/Neargye/magic_enum.git
|
||||
GIT_REPOSITORY ${MAGICENUM_REPO}
|
||||
GIT_TAG v0.9.3
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
9
3rdParty/opencv/CMakeLists.txt
vendored
9
3rdParty/opencv/CMakeLists.txt
vendored
@@ -1,10 +1,15 @@
|
||||
Find_Package(OpenCV)
|
||||
|
||||
if(NOT DEFINED OPENCV_REPO)
|
||||
set(OPENCV_REPO https://github.com/opencv/opencv.git)
|
||||
endif ()
|
||||
|
||||
if (NOT OpenCV_FOUND)
|
||||
FetchContent_Declare(
|
||||
opencv
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/opencv/opencv.git
|
||||
GIT_TAG v4.5.0
|
||||
GIT_REPOSITORY ${OPENCV_REPO}
|
||||
GIT_TAG v4.8.1
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(opencv)
|
||||
|
||||
8
3rdParty/pugixml/CMakeLists.txt
vendored
8
3rdParty/pugixml/CMakeLists.txt
vendored
@@ -1,10 +1,14 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED PUGIXML_REPO)
|
||||
set(PUGIXML_REPO https://github.com/zeux/pugixml.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
pugixml
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/zeux/pugixml.git
|
||||
GIT_TAG v1.11.4
|
||||
GIT_REPOSITORY ${PUGIXML_REPO}
|
||||
GIT_TAG v1.14
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
8
3rdParty/spdlog/CMakeLists.txt
vendored
8
3rdParty/spdlog/CMakeLists.txt
vendored
@@ -1,10 +1,14 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED SPDLOG_REPO)
|
||||
set(SPDLOG_REPO https://github.com/gabime/spdlog.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
spdlog
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/gabime/spdlog.git
|
||||
GIT_TAG v1.8.1
|
||||
GIT_REPOSITORY ${SPDLOG_REPO}
|
||||
GIT_TAG v1.10.0
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(spdlog)
|
||||
|
||||
6
3rdParty/stb/CMakeLists.txt
vendored
6
3rdParty/stb/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED STB_REPO)
|
||||
set(STB_REPO https://github.com/nothings/stb.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
stb
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/nothings/stb.git
|
||||
GIT_REPOSITORY ${STB_REPO}
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(stb)
|
||||
|
||||
6
3rdParty/tracy/CMakeLists.txt
vendored
6
3rdParty/tracy/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED TRACY_REPO)
|
||||
set(TRACY_REPO https://github.com/wolfpld/tracy.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare (
|
||||
tracy
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/wolfpld/tracy.git
|
||||
GIT_REPOSITORY ${TRACY_REPO}
|
||||
GIT_TAG master
|
||||
GIT_SHALLOW TRUE
|
||||
GIT_PROGRESS TRUE
|
||||
|
||||
8
3rdParty/utfcpp/CMakeLists.txt
vendored
8
3rdParty/utfcpp/CMakeLists.txt
vendored
@@ -1,10 +1,14 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED UTFCPP_REPO)
|
||||
set(UTFCPP_REPO https://github.com/nemtrif/utfcpp.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
utfcpp
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/nemtrif/utfcpp.git
|
||||
GIT_TAG v3.1.2
|
||||
GIT_REPOSITORY ${UTFCPP_REPO}
|
||||
GIT_TAG v4.0.1
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
set(UTF8_TESTS OFF)
|
||||
|
||||
6
3rdParty/yaml-cpp/CMakeLists.txt
vendored
6
3rdParty/yaml-cpp/CMakeLists.txt
vendored
@@ -1,9 +1,13 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED YAMLCPP_REPO)
|
||||
set(YAMLCPP_REPO https://github.com/jbeder/yaml-cpp.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
yaml-cpp
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
|
||||
GIT_REPOSITORY ${YAMLCPP_REPO}
|
||||
GIT_TAG 0.8.0
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user