Add EXCLUDE_FROM_ALL

This commit is contained in:
2021-07-30 20:21:11 +02:00
parent b00d888471
commit 8b4e58526a
11 changed files with 34 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ include(FetchContent)
FetchContent_Declare(
assimp
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/assimp/assimp.git
GIT_TAG v5.0.1
GIT_SHALLOW TRUE

View File

@@ -1,10 +1,11 @@
include(FetchContent)
FetchContent_Declare(
eigen
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
GIT_TAG master
GIT_SHALLOW TRUE
eigen
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
GIT_TAG master
GIT_SHALLOW TRUE
)
set(EIGEN_BUILD_DOC OFF)
set(BUILD_TESTING OFF)

View File

@@ -1,10 +1,11 @@
include(FetchContent)
FetchContent_Declare(
glfw
GIT_REPOSITORY https://github.com/glfw/glfw.git
GIT_TAG 3.3.2
GIT_SHALLOW TRUE
glfw
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/glfw/glfw.git
GIT_TAG 3.3.2
GIT_SHALLOW TRUE
)
set(GLFW_BUILD_EXAMPLES OFF)
set(GLFW_BUILD_TESTS OFF)

View File

@@ -1,10 +1,11 @@
include(FetchContent)
FetchContent_Declare(
glm
GIT_REPOSITORY https://github.com/g-truc/glm.git
GIT_TAG 0.9.9.8
GIT_SHALLOW TRUE
glm
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/g-truc/glm.git
GIT_TAG 0.9.9.8
GIT_SHALLOW TRUE
)
set(GLM_TEST_ENABLE OFF)
FetchContent_MakeAvailable(glm)

View File

@@ -2,6 +2,7 @@ include(FetchContent)
FetchContent_Declare(
magic_enum
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/Neargye/magic_enum.git
GIT_TAG v0.7.0
GIT_SHALLOW TRUE

View File

@@ -2,6 +2,7 @@ Find_Package(OpenCV)
if (NOT OpenCV_FOUND)
FetchContent_Declare(
opencv
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/opencv/opencv.git
GIT_TAG v4.5.0
GIT_SHALLOW TRUE

View File

@@ -2,6 +2,7 @@ include(FetchContent)
FetchContent_Declare(
pugixml
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/zeux/pugixml.git
GIT_TAG v1.11.4
GIT_SHALLOW TRUE

View File

@@ -2,6 +2,7 @@ include(FetchContent)
FetchContent_Declare(
spdlog
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/gabime/spdlog.git
GIT_TAG v1.8.1
GIT_SHALLOW TRUE

View File

@@ -1,9 +1,10 @@
include(FetchContent)
FetchContent_Declare(
stb
GIT_REPOSITORY https://github.com/nothings/stb.git
GIT_SHALLOW TRUE
stb
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/nothings/stb.git
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(stb)

View File

@@ -1,10 +1,11 @@
include(FetchContent)
FetchContent_Declare(
utfcpp
GIT_REPOSITORY https://github.com/nemtrif/utfcpp.git
GIT_TAG v3.1.2
GIT_SHALLOW TRUE
utfcpp
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/nemtrif/utfcpp.git
GIT_TAG v3.1.2
GIT_SHALLOW TRUE
)
set(UTF8_TESTS OFF)
set(UTF8_INSTALL OFF)

View File

@@ -1,10 +1,11 @@
include(FetchContent)
FetchContent_Declare(
yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG yaml-cpp-0.6.3
GIT_SHALLOW TRUE
yaml-cpp
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG yaml-cpp-0.6.3
GIT_SHALLOW TRUE
)
set(YAML_CPP_BUILD_TOOLS OFF)
set(YAML_CPP_BUILD_TESTS OFF)