Support less 3D model file formats;

Support OBJ, FBX, and COLLADA, as these seem to be the most common
formats.  This is done to reduce the size of the assimp dll.  More
formats can be added as needed.
This commit is contained in:
bjorn 2017-03-07 17:25:09 -08:00
parent 4e542266a2
commit d4a36614b0
1 changed files with 9 additions and 2 deletions

View File

@ -67,8 +67,15 @@ else()
endif()
# assimp
option(ASSIMP_BUILD_ASSIMP_TOOLS OFF)
option(ASSIMP_BUILD_TESTS OFF)
set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE BOOL "")
set(ASSIMP_BUILD_TESTS OFF CACHE BOOL "")
set(ASSIMP_NO_EXPORT ON OFF CACHE BOOL "")
set(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT OFF CACHE BOOL "")
set(ASSIMP_BUILD_COLLADA_IMPORTER ON CACHE BOOL "")
set(ASSIMP_BUILD_OBJ_IMPORTER ON CACHE BOOL "")
set(ASSIMP_BUILD_FBX_IMPORTER ON CACHE BOOL "")
if(WIN32)
add_subdirectory(deps/assimp assimp)
include_directories(deps/assimp/include)