From d4a36614b0a2b190640b018cd96522516420d9c8 Mon Sep 17 00:00:00 2001 From: bjorn Date: Tue, 7 Mar 2017 17:25:09 -0800 Subject: [PATCH] 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. --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d54dd16b..956ca9eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)