more in fetchcontent

feature/softbody-runtime-control
Benjamin Kraft 4 months ago
parent a3da2f8f3d
commit 6a5cdc7471
  1. 28
      CMakeLists.txt
  2. 34
      deps.cmake

@ -7,31 +7,17 @@ file(GLOB_RECURSE SRC_FILES src/**.cpp)
add_executable(VulkanSimulation ${SRC_FILES}) add_executable(VulkanSimulation ${SRC_FILES})
find_package(Vulkan REQUIRED) find_package(Vulkan REQUIRED)
find_package(glfw3 REQUIRED)
find_package(glm REQUIRED)
include(FetchContent) include(deps.cmake)
FetchContent_Declare(
vma
GIT_REPOSITORY https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
GIT_TAG v3.1.0
GIT_PROGRESS ON
FIND_PACKAGE_ARGS 3.1.0)
FetchContent_MakeAvailable(vma)
FetchContent_Declare(assimp
GIT_REPOSITORY https://github.com/assimp/assimp.git
GIT_TAG v5.4.3
)
FetchContent_MakeAvailable(assimp)
FetchContent_Declare(tetgen FetchContent_MakeAvailable(glfw)
GIT_REPOSITORY https://github.com/ufz/tetgen.git FetchContent_MakeAvailable(glm)
GIT_TAG 1.5.1 FetchContent_MakeAvailable(vma)
)
FetchContent_MakeAvailable(tetgen) FetchContent_MakeAvailable(tetgen)
FetchContent_MakeAvailable(assimp)
target_compile_options(assimp PRIVATE -Wno-unknown-pragmas)
target_link_libraries(VulkanSimulation glm::glm glfw Vulkan::Vulkan GPUOpen::VulkanMemoryAllocator assimp tet) target_link_libraries(VulkanSimulation glm glfw Vulkan::Vulkan GPUOpen::VulkanMemoryAllocator assimp tet)
target_include_directories(VulkanSimulation PRIVATE include) target_include_directories(VulkanSimulation PRIVATE include)
target_compile_definitions(VulkanSimulation PRIVATE target_compile_definitions(VulkanSimulation PRIVATE
GLM_FORCE_RADIANS GLM_FORCE_RADIANS

@ -0,0 +1,34 @@
include(FetchContent)
set(FETCHCONTENT_QUIET OFF)
FetchContent_Declare(glfw
GIT_REPOSITORY https://github.com/glfw/glfw.git
GIT_TAG 3.4
GIT_PROGRESS ON
)
FetchContent_Declare(glm
GIT_REPOSITORY https://github.com/g-truc/glm.git
GIT_TAG 1.0.1
GIT_PROGRESS ON
)
FetchContent_Declare(
vma
GIT_REPOSITORY https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
GIT_TAG v3.1.0
GIT_PROGRESS ON
FIND_PACKAGE_ARGS 3.1.0)
FetchContent_Declare(assimp
GIT_REPOSITORY https://github.com/assimp/assimp.git
GIT_TAG v5.4.3
)
FetchContent_Declare(tetgen
GIT_REPOSITORY https://github.com/ufz/tetgen.git
GIT_TAG 1.5.1
)
Loading…
Cancel
Save