assimp faster build

feature/softbody-runtime-control
Benjamin Kraft 3 months ago
parent 698cd5b1fe
commit 69f18910bc
  1. 5
      CMakeLists.txt
  2. 8
      deps.cmake

@ -16,11 +16,6 @@ endif ()
FetchContent_MakeAvailable(glm) FetchContent_MakeAvailable(glm)
FetchContent_MakeAvailable(vma) FetchContent_MakeAvailable(vma)
FetchContent_MakeAvailable(tetgen) FetchContent_MakeAvailable(tetgen)
set(ASSIMP_NO_EXPORT ON)
set(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT OFF)
set(ASSIMP_BUILD_OBJ_IMPORTER ON)
set(ASSIMP_BUILD_PLY_IMPORTER ON)
FetchContent_MakeAvailable(assimp) FetchContent_MakeAvailable(assimp)
target_compile_options(assimp PRIVATE -Wno-unknown-pragmas) target_compile_options(assimp PRIVATE -Wno-unknown-pragmas)

@ -23,12 +23,20 @@ FetchContent_Declare(
FIND_PACKAGE_ARGS 3.1.0) FIND_PACKAGE_ARGS 3.1.0)
set(ASSIMP_NO_EXPORT ON)
set(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT OFF)
set(ASSIMP_BUILD_OBJ_IMPORTER ON)
set(ASSIMP_BUILD_PLY_IMPORTER ON)
set(ASSIMP_INSTALL OFF)
set(ASSIMP_BUILD_TESTS OFF)
FetchContent_Declare(assimp FetchContent_Declare(assimp
GIT_REPOSITORY https://github.com/assimp/assimp.git GIT_REPOSITORY https://github.com/assimp/assimp.git
GIT_TAG v5.4.3 GIT_TAG v5.4.3
GIT_PROGRESS ON
) )
FetchContent_Declare(tetgen FetchContent_Declare(tetgen
GIT_REPOSITORY https://github.com/ufz/tetgen.git GIT_REPOSITORY https://github.com/ufz/tetgen.git
GIT_TAG 1.5.1 GIT_TAG 1.5.1
GIT_PROGRESS ON
) )
Loading…
Cancel
Save