Add dependencies

This commit is contained in:
2020-11-29 19:26:21 +01:00
parent 7dc90b3e83
commit 097669bc44
5 changed files with 38 additions and 2 deletions

View File

@@ -6,4 +6,7 @@ endif()
add_subdirectory(spdlog)
add_subdirectory(assimp)
add_subdirectory(magic-enum)
add_subdirectory(yaml-cpp)
add_subdirectory(yaml-cpp)
add_subdirectory(pugixml)
add_subdirectory(opencv)
add_subdirectory(PlatformFolders)

10
3rdParty/PlatformFolders/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,10 @@
include(FetchContent)
FetchContent_Declare(
platform_folders
GIT_REPOSITORY https://github.com/sago007/PlatformFolders.git
GIT_TAG 4.2.0
GIT_SHALLOW TRUE
)
set(PLATFORMFOLDERS_BUILD_TESTING OFF)
FetchContent_MakeAvailable(platform_folders)

10
3rdParty/opencv/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,10 @@
Find_Package(OpenCV)
if (NOT OpenCV_FOUND)
FetchContent_Declare(
opencv
GIT_REPOSITORY https://github.com/opencv/opencv.git
GIT_TAG v4.5.0
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(opencv)
endif()

10
3rdParty/pugixml/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,10 @@
include(FetchContent)
FetchContent_Declare(
pugixml
GIT_REPOSITORY https://github.com/zeux/pugixml.git
GIT_TAG v1.11.4
GIT_SHALLOW TRUE
)
set(PUGIXML_BUILD_TESTS OFF)
FetchContent_MakeAvailable(pugixml)