Created
September 17, 2019 20:12
-
-
Save concubicycle/c5b8829f8d957b6f783033ee1037e9d8 to your computer and use it in GitHub Desktop.
Add assimp as external project, build as static lib, only include desired importers (keep lib size down).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(ExternalProject) | |
ExternalProject_Add(assimp | |
PREFIX assimp | |
GIT_REPOSITORY https://github.com/assimp/assimp.git | |
GIT_TAG master | |
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}/assimp | |
-DBUILD_SHARED_LIBS=OFF | |
-DASSIMP_BUILD_TESTS=OFF | |
# -DOpenGL_GL_PREFERENCE=GLVND # on certain systems | |
-DASSIMP_BUILD_ASSIMP_TOOLS=OFF | |
-DASSIMP_BUILD_ZLIB=ON | |
-DASSIMP_NO_EXPORT=ON | |
-DASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT=OFF | |
-DASSIMP_BUILD_glTF_IMPORTER=TRUE | |
-DASSIMP_BUILD_glTF2_IMPORTER=TRUE | |
-DASSIMP_BUILD_Ogre_IMPORTER=TRUE # Contains common Animation namespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment