2016-09-29 20:16:59 +00:00
|
|
|
# Open Asset Import Library (assimp)
|
2016-04-23 07:42:05 +00:00
|
|
|
# ----------------------------------------------------------------------
|
2016-05-07 12:16:33 +00:00
|
|
|
#
|
2017-05-09 17:57:36 +00:00
|
|
|
# Copyright (c) 2006-2017, assimp team
|
|
|
|
|
2016-04-23 07:42:05 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use of this software in source and binary forms,
|
|
|
|
# with or without modification, are permitted provided that the
|
|
|
|
# following conditions are met:
|
|
|
|
#
|
|
|
|
# * Redistributions of source code must retain the above
|
|
|
|
# copyright notice, this list of conditions and the
|
|
|
|
# following disclaimer.
|
|
|
|
#
|
|
|
|
# * Redistributions in binary form must reproduce the above
|
|
|
|
# copyright notice, this list of conditions and the
|
|
|
|
# following disclaimer in the documentation and/or other
|
|
|
|
# materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# * Neither the name of the assimp team, nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products
|
|
|
|
# derived from this software without specific prior
|
|
|
|
# written permission of the assimp team.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
# Listing and grouping of all the source files.
|
|
|
|
# 1) Set the file lists for each component
|
|
|
|
# 2) Create a Source Group for each component, for IDE project orginization
|
|
|
|
# 3) Add libassimp using the file lists (eliminates duplication of file names between
|
|
|
|
# source groups and library command)
|
|
|
|
#
|
|
|
|
cmake_minimum_required( VERSION 2.6 )
|
|
|
|
SET( HEADER_PATH ../include/assimp )
|
|
|
|
|
|
|
|
SET( COMPILER_HEADERS
|
|
|
|
${HEADER_PATH}/Compiler/pushpack1.h
|
|
|
|
${HEADER_PATH}/Compiler/poppack1.h
|
|
|
|
${HEADER_PATH}/Compiler/pstdint.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( Compiler FILES ${COMPILER_HEADERS})
|
|
|
|
|
|
|
|
SET( PUBLIC_HEADERS
|
|
|
|
${HEADER_PATH}/anim.h
|
|
|
|
${HEADER_PATH}/ai_assert.h
|
|
|
|
${HEADER_PATH}/camera.h
|
|
|
|
${HEADER_PATH}/color4.h
|
|
|
|
${HEADER_PATH}/color4.inl
|
2017-05-13 18:09:21 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../include/assimp/config.h
|
2015-05-19 03:44:54 +00:00
|
|
|
${HEADER_PATH}/defs.h
|
2017-09-12 16:59:38 +00:00
|
|
|
${HEADER_PATH}/Defines.h
|
2015-05-19 03:44:54 +00:00
|
|
|
${HEADER_PATH}/cfileio.h
|
|
|
|
${HEADER_PATH}/light.h
|
|
|
|
${HEADER_PATH}/material.h
|
|
|
|
${HEADER_PATH}/material.inl
|
|
|
|
${HEADER_PATH}/matrix3x3.h
|
|
|
|
${HEADER_PATH}/matrix3x3.inl
|
|
|
|
${HEADER_PATH}/matrix4x4.h
|
|
|
|
${HEADER_PATH}/matrix4x4.inl
|
|
|
|
${HEADER_PATH}/mesh.h
|
|
|
|
${HEADER_PATH}/postprocess.h
|
|
|
|
${HEADER_PATH}/quaternion.h
|
|
|
|
${HEADER_PATH}/quaternion.inl
|
|
|
|
${HEADER_PATH}/scene.h
|
|
|
|
${HEADER_PATH}/metadata.h
|
|
|
|
${HEADER_PATH}/texture.h
|
|
|
|
${HEADER_PATH}/types.h
|
|
|
|
${HEADER_PATH}/vector2.h
|
|
|
|
${HEADER_PATH}/vector2.inl
|
|
|
|
${HEADER_PATH}/vector3.h
|
|
|
|
${HEADER_PATH}/vector3.inl
|
|
|
|
${HEADER_PATH}/version.h
|
|
|
|
${HEADER_PATH}/cimport.h
|
|
|
|
${HEADER_PATH}/importerdesc.h
|
|
|
|
${HEADER_PATH}/Importer.hpp
|
|
|
|
${HEADER_PATH}/DefaultLogger.hpp
|
|
|
|
${HEADER_PATH}/ProgressHandler.hpp
|
|
|
|
${HEADER_PATH}/IOStream.hpp
|
|
|
|
${HEADER_PATH}/IOSystem.hpp
|
|
|
|
${HEADER_PATH}/Logger.hpp
|
|
|
|
${HEADER_PATH}/LogStream.hpp
|
|
|
|
${HEADER_PATH}/NullLogger.hpp
|
|
|
|
${HEADER_PATH}/cexport.h
|
|
|
|
${HEADER_PATH}/Exporter.hpp
|
2017-02-28 02:31:56 +00:00
|
|
|
${HEADER_PATH}/DefaultIOStream.h
|
|
|
|
${HEADER_PATH}/DefaultIOSystem.h
|
2017-06-21 12:21:16 +00:00
|
|
|
${HEADER_PATH}/SceneCombiner.h
|
2018-01-06 00:18:33 +00:00
|
|
|
${HEADER_PATH}/fast_atof.h
|
|
|
|
${HEADER_PATH}/qnan.h
|
|
|
|
${HEADER_PATH}/BaseImporter.h
|
|
|
|
${HEADER_PATH}/Hash.h
|
|
|
|
${HEADER_PATH}/MemoryIOWrapper.h
|
|
|
|
${HEADER_PATH}/ParsingUtils.h
|
|
|
|
${HEADER_PATH}/StreamReader.h
|
|
|
|
${HEADER_PATH}/StreamWriter.h
|
|
|
|
${HEADER_PATH}/StringComparison.h
|
|
|
|
${HEADER_PATH}/StringUtils.h
|
|
|
|
${HEADER_PATH}/SGSpatialSort.h
|
|
|
|
${HEADER_PATH}/GenericProperty.h
|
|
|
|
${HEADER_PATH}/SpatialSort.h
|
|
|
|
${HEADER_PATH}/SkeletonMeshBuilder.h
|
|
|
|
${HEADER_PATH}/SmoothingGroups.h
|
|
|
|
${HEADER_PATH}/SmoothingGroups.inl
|
|
|
|
${HEADER_PATH}/StandardShapes.h
|
|
|
|
${HEADER_PATH}/RemoveComments.h
|
|
|
|
${HEADER_PATH}/Subdivision.h
|
|
|
|
${HEADER_PATH}/Vertex.h
|
|
|
|
${HEADER_PATH}/LineSplitter.h
|
|
|
|
${HEADER_PATH}/TinyFormatter.h
|
|
|
|
${HEADER_PATH}/Profiler.h
|
|
|
|
${HEADER_PATH}/LogAux.h
|
|
|
|
${HEADER_PATH}/Bitmap.h
|
|
|
|
${HEADER_PATH}/XMLTools.h
|
|
|
|
${HEADER_PATH}/IOStreamBuffer.h
|
|
|
|
${HEADER_PATH}/CreateAnimMesh.h
|
|
|
|
${HEADER_PATH}/irrXMLWrapper.h
|
|
|
|
${HEADER_PATH}/BlobIOSystem.h
|
|
|
|
${HEADER_PATH}/MathFunctions.h
|
|
|
|
${HEADER_PATH}/Macros.h
|
|
|
|
${HEADER_PATH}/Exceptional.h
|
|
|
|
${HEADER_PATH}/ByteSwapper.h
|
2015-05-19 03:44:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
SET( Core_SRCS
|
|
|
|
Assimp.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
SET( Logging_SRCS
|
|
|
|
${HEADER_PATH}/DefaultLogger.hpp
|
|
|
|
${HEADER_PATH}/LogStream.hpp
|
|
|
|
${HEADER_PATH}/Logger.hpp
|
|
|
|
${HEADER_PATH}/NullLogger.hpp
|
|
|
|
Win32DebugLogStream.h
|
|
|
|
DefaultLogger.cpp
|
|
|
|
FileLogStream.h
|
|
|
|
StdOStreamLogStream.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP(Logging FILES ${Logging_SRCS})
|
|
|
|
|
|
|
|
SET( Common_SRCS
|
|
|
|
BaseImporter.cpp
|
|
|
|
BaseProcess.cpp
|
|
|
|
BaseProcess.h
|
|
|
|
Importer.h
|
|
|
|
ScenePrivate.h
|
|
|
|
PostStepRegistry.cpp
|
|
|
|
ImporterRegistry.cpp
|
|
|
|
DefaultProgressHandler.h
|
|
|
|
DefaultIOStream.cpp
|
|
|
|
DefaultIOSystem.cpp
|
2016-10-17 13:28:14 +00:00
|
|
|
CInterfaceIOWrapper.cpp
|
2015-05-19 03:44:54 +00:00
|
|
|
CInterfaceIOWrapper.h
|
|
|
|
Importer.cpp
|
|
|
|
IFF.h
|
|
|
|
SGSpatialSort.cpp
|
|
|
|
VertexTriangleAdjacency.cpp
|
|
|
|
VertexTriangleAdjacency.h
|
|
|
|
SpatialSort.cpp
|
|
|
|
SceneCombiner.cpp
|
|
|
|
ScenePreprocessor.cpp
|
|
|
|
ScenePreprocessor.h
|
|
|
|
SkeletonMeshBuilder.cpp
|
|
|
|
SplitByBoneCountProcess.cpp
|
|
|
|
SplitByBoneCountProcess.h
|
2017-10-29 19:28:59 +00:00
|
|
|
ScaleProcess.cpp
|
|
|
|
ScaleProcess.h
|
2015-05-19 03:44:54 +00:00
|
|
|
StandardShapes.cpp
|
|
|
|
TargetAnimation.cpp
|
|
|
|
TargetAnimation.h
|
|
|
|
RemoveComments.cpp
|
|
|
|
Subdivision.cpp
|
2017-01-19 10:18:33 +00:00
|
|
|
scene.cpp
|
2015-05-19 03:44:54 +00:00
|
|
|
Bitmap.cpp
|
|
|
|
Version.cpp
|
2017-01-12 11:41:32 +00:00
|
|
|
CreateAnimMesh.cpp
|
2015-05-19 03:44:54 +00:00
|
|
|
)
|
|
|
|
SOURCE_GROUP(Common FILES ${Common_SRCS})
|
|
|
|
|
|
|
|
IF ( ASSIMP_BUILD_NONFREE_C4D_IMPORTER )
|
|
|
|
SET( C4D_SRCS
|
|
|
|
C4DImporter.cpp
|
|
|
|
C4DImporter.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( C4D FILES ${C4D_SRCS})
|
|
|
|
ENDIF ( ASSIMP_BUILD_NONFREE_C4D_IMPORTER )
|
|
|
|
|
2017-02-28 02:32:44 +00:00
|
|
|
# if this variable is set to TRUE, the user can manually disable importers by setting
|
|
|
|
# ASSIMP_BUILD_XXX_IMPORTER to FALSE for each importer
|
|
|
|
# if this variable is set to FALSE, the user can manually enable importers by setting
|
|
|
|
# ASSIMP_BUILD_XXX_IMPORTER to TRUE for each importer
|
|
|
|
OPTION(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT "default value of all ASSIMP_BUILD_XXX_IMPORTER value" TRUE)
|
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
# macro to add the CMake Option ADD_ASSIMP_IMPORTER_<name> which enables compile of loader
|
|
|
|
# this way selective loaders can be compiled (reduces filesize + compile time)
|
|
|
|
MACRO(ADD_ASSIMP_IMPORTER name)
|
2017-02-28 02:32:44 +00:00
|
|
|
OPTION(ASSIMP_BUILD_${name}_IMPORTER "build the ${name} importer" ${ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT})
|
2015-05-19 03:44:54 +00:00
|
|
|
IF(ASSIMP_BUILD_${name}_IMPORTER)
|
|
|
|
LIST(APPEND ASSIMP_LOADER_SRCS ${ARGN})
|
|
|
|
SET(ASSIMP_IMPORTERS_ENABLED "${ASSIMP_IMPORTERS_ENABLED} ${name}")
|
|
|
|
SET(${name}_SRCS ${ARGN})
|
|
|
|
SOURCE_GROUP(${name} FILES ${ARGN})
|
|
|
|
ELSE()
|
|
|
|
SET(${name}_SRC "")
|
|
|
|
SET(ASSIMP_IMPORTERS_DISABLED "${ASSIMP_IMPORTERS_DISABLED} ${name}")
|
|
|
|
add_definitions(-DASSIMP_BUILD_NO_${name}_IMPORTER)
|
2016-12-05 09:12:46 +00:00
|
|
|
add_definitions(-DASSIMP_BUILD_NO_${name}_EXPORTER)
|
2015-05-19 03:44:54 +00:00
|
|
|
ENDIF()
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
SET(ASSIMP_LOADER_SRCS "")
|
|
|
|
SET(ASSIMP_IMPORTERS_ENABLED "") # list of enabled importers
|
|
|
|
SET(ASSIMP_IMPORTERS_DISABLED "") # disabled list (used to print)
|
|
|
|
|
2016-09-26 09:57:44 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( AMF
|
|
|
|
AMFImporter.hpp
|
|
|
|
AMFImporter_Macro.hpp
|
|
|
|
AMFImporter_Node.hpp
|
|
|
|
AMFImporter.cpp
|
|
|
|
AMFImporter_Geometry.cpp
|
|
|
|
AMFImporter_Material.cpp
|
|
|
|
AMFImporter_Postprocess.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( 3DS
|
2015-05-19 03:44:54 +00:00
|
|
|
3DSConverter.cpp
|
|
|
|
3DSHelper.h
|
|
|
|
3DSLoader.cpp
|
|
|
|
3DSLoader.h
|
|
|
|
3DSExporter.h
|
|
|
|
3DSExporter.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( AC
|
2015-05-19 03:44:54 +00:00
|
|
|
ACLoader.cpp
|
|
|
|
ACLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( ASE
|
2015-05-19 03:44:54 +00:00
|
|
|
ASELoader.cpp
|
|
|
|
ASELoader.h
|
|
|
|
ASEParser.cpp
|
|
|
|
ASEParser.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( ASSBIN
|
2015-05-19 03:44:54 +00:00
|
|
|
AssbinExporter.h
|
|
|
|
AssbinExporter.cpp
|
|
|
|
AssbinLoader.h
|
|
|
|
AssbinLoader.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( ASSXML
|
2015-05-19 03:44:54 +00:00
|
|
|
AssxmlExporter.h
|
|
|
|
AssxmlExporter.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( B3D
|
2015-05-19 03:44:54 +00:00
|
|
|
B3DImporter.cpp
|
|
|
|
B3DImporter.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( BVH
|
2015-05-19 03:44:54 +00:00
|
|
|
BVHLoader.cpp
|
|
|
|
BVHLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( COLLADA
|
2015-05-19 03:44:54 +00:00
|
|
|
ColladaHelper.h
|
|
|
|
ColladaLoader.cpp
|
|
|
|
ColladaLoader.h
|
|
|
|
ColladaParser.cpp
|
|
|
|
ColladaParser.h
|
|
|
|
ColladaExporter.h
|
|
|
|
ColladaExporter.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( DXF
|
2015-05-19 03:44:54 +00:00
|
|
|
DXFLoader.cpp
|
|
|
|
DXFLoader.h
|
|
|
|
DXFHelper.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( CSM
|
2015-05-19 03:44:54 +00:00
|
|
|
CSMLoader.cpp
|
|
|
|
CSMLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( HMP
|
2015-05-19 03:44:54 +00:00
|
|
|
HMPFileData.h
|
|
|
|
HMPLoader.cpp
|
|
|
|
HMPLoader.h
|
|
|
|
HalfLifeFileData.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( IRRMESH
|
2016-05-09 22:26:18 +00:00
|
|
|
IRRMeshLoader.cpp
|
|
|
|
IRRMeshLoader.h
|
|
|
|
IRRShared.cpp
|
|
|
|
IRRShared.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( IRR
|
2015-05-19 03:44:54 +00:00
|
|
|
IRRLoader.cpp
|
|
|
|
IRRLoader.h
|
|
|
|
IRRShared.cpp
|
|
|
|
IRRShared.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( LWO
|
2015-05-19 03:44:54 +00:00
|
|
|
LWOAnimation.cpp
|
|
|
|
LWOAnimation.h
|
|
|
|
LWOBLoader.cpp
|
|
|
|
LWOFileData.h
|
|
|
|
LWOLoader.cpp
|
|
|
|
LWOLoader.h
|
|
|
|
LWOMaterial.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( LWS
|
2015-05-19 03:44:54 +00:00
|
|
|
LWSLoader.cpp
|
|
|
|
LWSLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MD2
|
2015-05-19 03:44:54 +00:00
|
|
|
MD2FileData.h
|
|
|
|
MD2Loader.cpp
|
|
|
|
MD2Loader.h
|
|
|
|
MD2NormalTable.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MD3
|
2015-05-19 03:44:54 +00:00
|
|
|
MD3FileData.h
|
|
|
|
MD3Loader.cpp
|
|
|
|
MD3Loader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MD5
|
2015-05-19 03:44:54 +00:00
|
|
|
MD5Loader.cpp
|
|
|
|
MD5Loader.h
|
|
|
|
MD5Parser.cpp
|
|
|
|
MD5Parser.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MDC
|
2015-05-19 03:44:54 +00:00
|
|
|
MDCFileData.h
|
|
|
|
MDCLoader.cpp
|
|
|
|
MDCLoader.h
|
|
|
|
MDCNormalTable.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MDL
|
2015-05-19 03:44:54 +00:00
|
|
|
MDLDefaultColorMap.h
|
|
|
|
MDLFileData.h
|
|
|
|
MDLLoader.cpp
|
|
|
|
MDLLoader.h
|
|
|
|
MDLMaterialLoader.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
SET( MaterialSystem_SRCS
|
|
|
|
MaterialSystem.cpp
|
|
|
|
MaterialSystem.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( MaterialSystem FILES ${MaterialSystem_SRCS})
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( NFF
|
2015-05-19 03:44:54 +00:00
|
|
|
NFFLoader.cpp
|
|
|
|
NFFLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( NDO
|
2015-05-19 03:44:54 +00:00
|
|
|
NDOLoader.cpp
|
|
|
|
NDOLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( OFF
|
2015-05-19 03:44:54 +00:00
|
|
|
OFFLoader.cpp
|
|
|
|
OFFLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( OBJ
|
2015-05-19 03:44:54 +00:00
|
|
|
ObjFileData.h
|
|
|
|
ObjFileImporter.cpp
|
|
|
|
ObjFileImporter.h
|
|
|
|
ObjFileMtlImporter.cpp
|
|
|
|
ObjFileMtlImporter.h
|
|
|
|
ObjFileParser.cpp
|
|
|
|
ObjFileParser.h
|
|
|
|
ObjTools.h
|
|
|
|
ObjExporter.h
|
|
|
|
ObjExporter.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( OGRE
|
2015-05-19 03:44:54 +00:00
|
|
|
OgreImporter.h
|
|
|
|
OgreStructs.h
|
|
|
|
OgreParsingUtils.h
|
|
|
|
OgreBinarySerializer.h
|
|
|
|
OgreXmlSerializer.h
|
|
|
|
OgreImporter.cpp
|
|
|
|
OgreStructs.cpp
|
|
|
|
OgreBinarySerializer.cpp
|
|
|
|
OgreXmlSerializer.cpp
|
|
|
|
OgreMaterial.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( OPENGEX
|
2015-07-01 18:43:37 +00:00
|
|
|
OpenGEXExporter.cpp
|
|
|
|
OpenGEXExporter.h
|
2015-05-19 03:44:54 +00:00
|
|
|
OpenGEXImporter.cpp
|
|
|
|
OpenGEXImporter.h
|
|
|
|
OpenGEXStructs.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( PLY
|
2015-05-19 03:44:54 +00:00
|
|
|
PlyLoader.cpp
|
|
|
|
PlyLoader.h
|
|
|
|
PlyParser.cpp
|
|
|
|
PlyParser.h
|
|
|
|
PlyExporter.cpp
|
|
|
|
PlyExporter.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MS3D
|
2015-05-19 03:44:54 +00:00
|
|
|
MS3DLoader.cpp
|
|
|
|
MS3DLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( COB
|
2015-05-19 03:44:54 +00:00
|
|
|
COBLoader.cpp
|
|
|
|
COBLoader.h
|
|
|
|
COBScene.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( BLEND
|
2015-05-19 03:44:54 +00:00
|
|
|
BlenderLoader.cpp
|
|
|
|
BlenderLoader.h
|
|
|
|
BlenderDNA.cpp
|
|
|
|
BlenderDNA.h
|
|
|
|
BlenderDNA.inl
|
|
|
|
BlenderScene.cpp
|
|
|
|
BlenderScene.h
|
|
|
|
BlenderSceneGen.h
|
|
|
|
BlenderIntermediate.h
|
|
|
|
BlenderModifier.h
|
|
|
|
BlenderModifier.cpp
|
|
|
|
BlenderBMesh.h
|
|
|
|
BlenderBMesh.cpp
|
|
|
|
BlenderTessellator.h
|
|
|
|
BlenderTessellator.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( IFC
|
2018-01-16 03:00:56 +00:00
|
|
|
Importer/IFC/IFCLoader.cpp
|
|
|
|
Importer/IFC/IFCLoader.h
|
|
|
|
Importer/IFC/IFCReaderGen1_2x3.cpp
|
|
|
|
Importer/IFC/IFCReaderGen2_2x3.cpp
|
|
|
|
Importer/IFC/IFCReaderGen_2x3.h
|
|
|
|
Importer/IFC/IFCUtil.h
|
|
|
|
Importer/IFC/IFCUtil.cpp
|
|
|
|
Importer/IFC/IFCGeometry.cpp
|
|
|
|
Importer/IFC/IFCMaterial.cpp
|
|
|
|
Importer/IFC/IFCProfile.cpp
|
|
|
|
Importer/IFC/IFCCurve.cpp
|
|
|
|
Importer/IFC/IFCBoolean.cpp
|
|
|
|
Importer/IFC/IFCOpenings.cpp
|
|
|
|
Importer/IFC/STEPFileReader.h
|
|
|
|
Importer/IFC/STEPFileReader.cpp
|
|
|
|
Importer/IFC/STEPFileEncoding.cpp
|
|
|
|
Importer/IFC/STEPFileEncoding.h
|
2015-05-19 03:44:54 +00:00
|
|
|
)
|
2016-12-05 10:57:05 +00:00
|
|
|
if (ASSIMP_BUILD_IFC_IMPORTER)
|
|
|
|
if (MSVC)
|
|
|
|
set_source_files_properties(IFCReaderGen1.cpp IFCReaderGen2.cpp PROPERTIES COMPILE_FLAGS "/bigobj")
|
|
|
|
elseif(CMAKE_COMPILER_IS_MINGW)
|
|
|
|
set_source_files_properties(IFCReaderGen1.cpp IFCReaderGen2.cpp PROPERTIES COMPILE_FLAGS "-O2 -Wa,-mbig-obj")
|
|
|
|
endif()
|
|
|
|
endif (ASSIMP_BUILD_IFC_IMPORTER)
|
2015-05-19 03:44:54 +00:00
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( XGL
|
2015-05-19 03:44:54 +00:00
|
|
|
XGLLoader.cpp
|
|
|
|
XGLLoader.h
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( FBX
|
2015-05-19 03:44:54 +00:00
|
|
|
FBXImporter.cpp
|
|
|
|
FBXCompileConfig.h
|
|
|
|
FBXImporter.h
|
|
|
|
FBXParser.cpp
|
|
|
|
FBXParser.h
|
|
|
|
FBXTokenizer.cpp
|
|
|
|
FBXTokenizer.h
|
|
|
|
FBXImportSettings.h
|
|
|
|
FBXConverter.h
|
|
|
|
FBXConverter.cpp
|
|
|
|
FBXUtil.h
|
|
|
|
FBXUtil.cpp
|
|
|
|
FBXDocument.h
|
|
|
|
FBXDocument.cpp
|
|
|
|
FBXProperties.h
|
|
|
|
FBXProperties.cpp
|
2016-03-03 14:19:38 +00:00
|
|
|
FBXMeshGeometry.h
|
2015-05-19 03:44:54 +00:00
|
|
|
FBXMeshGeometry.cpp
|
|
|
|
FBXMaterial.cpp
|
|
|
|
FBXModel.cpp
|
|
|
|
FBXAnimation.cpp
|
|
|
|
FBXNodeAttribute.cpp
|
|
|
|
FBXDeformer.cpp
|
|
|
|
FBXBinaryTokenizer.cpp
|
|
|
|
FBXDocumentUtil.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
SET( PostProcessing_SRCS
|
|
|
|
CalcTangentsProcess.cpp
|
|
|
|
CalcTangentsProcess.h
|
|
|
|
ComputeUVMappingProcess.cpp
|
|
|
|
ComputeUVMappingProcess.h
|
|
|
|
ConvertToLHProcess.cpp
|
|
|
|
ConvertToLHProcess.h
|
2018-01-08 08:26:26 +00:00
|
|
|
EmbedTexturesProcess.cpp
|
|
|
|
EmbedTexturesProcess.h
|
2015-05-19 03:44:54 +00:00
|
|
|
FindDegenerates.cpp
|
|
|
|
FindDegenerates.h
|
|
|
|
FindInstancesProcess.cpp
|
|
|
|
FindInstancesProcess.h
|
|
|
|
FindInvalidDataProcess.cpp
|
|
|
|
FindInvalidDataProcess.h
|
|
|
|
FixNormalsStep.cpp
|
|
|
|
FixNormalsStep.h
|
|
|
|
GenFaceNormalsProcess.cpp
|
|
|
|
GenFaceNormalsProcess.h
|
|
|
|
GenVertexNormalsProcess.cpp
|
|
|
|
GenVertexNormalsProcess.h
|
|
|
|
PretransformVertices.cpp
|
|
|
|
PretransformVertices.h
|
|
|
|
ImproveCacheLocality.cpp
|
|
|
|
ImproveCacheLocality.h
|
|
|
|
JoinVerticesProcess.cpp
|
|
|
|
JoinVerticesProcess.h
|
|
|
|
LimitBoneWeightsProcess.cpp
|
|
|
|
LimitBoneWeightsProcess.h
|
|
|
|
RemoveRedundantMaterials.cpp
|
|
|
|
RemoveRedundantMaterials.h
|
|
|
|
RemoveVCProcess.cpp
|
|
|
|
RemoveVCProcess.h
|
|
|
|
SortByPTypeProcess.cpp
|
|
|
|
SortByPTypeProcess.h
|
|
|
|
SplitLargeMeshes.cpp
|
|
|
|
SplitLargeMeshes.h
|
|
|
|
TextureTransform.cpp
|
|
|
|
TextureTransform.h
|
|
|
|
TriangulateProcess.cpp
|
|
|
|
TriangulateProcess.h
|
|
|
|
ValidateDataStructure.cpp
|
|
|
|
ValidateDataStructure.h
|
|
|
|
OptimizeGraph.cpp
|
|
|
|
OptimizeGraph.h
|
|
|
|
OptimizeMeshes.cpp
|
|
|
|
OptimizeMeshes.h
|
|
|
|
DeboneProcess.cpp
|
|
|
|
DeboneProcess.h
|
|
|
|
ProcessHelper.h
|
|
|
|
ProcessHelper.cpp
|
|
|
|
PolyTools.h
|
|
|
|
MakeVerboseFormat.cpp
|
|
|
|
MakeVerboseFormat.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( PostProcessing FILES ${PostProcessing_SRCS})
|
|
|
|
|
2018-01-06 00:18:33 +00:00
|
|
|
SET( IrrXML_SRCS ${HEADER_PATH}/irrXMLWrapper.h )
|
2017-04-27 15:19:51 +00:00
|
|
|
SOURCE_GROUP( IrrXML FILES ${IrrXML_SRCS})
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( Q3D
|
2015-05-19 03:44:54 +00:00
|
|
|
Q3DLoader.cpp
|
|
|
|
Q3DLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( Q3BSP
|
2015-05-19 03:44:54 +00:00
|
|
|
Q3BSPFileData.h
|
|
|
|
Q3BSPFileParser.h
|
|
|
|
Q3BSPFileParser.cpp
|
|
|
|
Q3BSPFileImporter.h
|
|
|
|
Q3BSPFileImporter.cpp
|
|
|
|
Q3BSPZipArchive.h
|
|
|
|
Q3BSPZipArchive.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( RAW
|
2015-05-19 03:44:54 +00:00
|
|
|
RawLoader.cpp
|
|
|
|
RawLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( SIB
|
2015-12-14 06:14:19 +00:00
|
|
|
SIBImporter.cpp
|
|
|
|
SIBImporter.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( SMD
|
2015-05-19 03:44:54 +00:00
|
|
|
SMDLoader.cpp
|
|
|
|
SMDLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( STL
|
2015-05-19 03:44:54 +00:00
|
|
|
STLLoader.cpp
|
|
|
|
STLLoader.h
|
|
|
|
STLExporter.h
|
|
|
|
STLExporter.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( TERRAGEN
|
2015-05-19 03:44:54 +00:00
|
|
|
TerragenLoader.cpp
|
|
|
|
TerragenLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( 3D
|
2015-05-19 03:44:54 +00:00
|
|
|
UnrealLoader.cpp
|
|
|
|
UnrealLoader.h
|
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( X
|
2015-05-19 03:44:54 +00:00
|
|
|
XFileHelper.h
|
|
|
|
XFileImporter.cpp
|
|
|
|
XFileImporter.h
|
|
|
|
XFileParser.cpp
|
|
|
|
XFileParser.h
|
|
|
|
XFileExporter.h
|
|
|
|
XFileExporter.cpp
|
|
|
|
)
|
|
|
|
|
2016-09-29 15:50:24 +00:00
|
|
|
ADD_ASSIMP_IMPORTER(X3D
|
2016-10-04 20:58:51 +00:00
|
|
|
X3DExporter.cpp
|
|
|
|
X3DExporter.hpp
|
2016-09-29 15:50:24 +00:00
|
|
|
X3DImporter.cpp
|
|
|
|
X3DImporter.hpp
|
|
|
|
X3DImporter_Geometry2D.cpp
|
|
|
|
X3DImporter_Geometry3D.cpp
|
|
|
|
X3DImporter_Group.cpp
|
|
|
|
X3DImporter_Light.cpp
|
2016-10-02 14:27:13 +00:00
|
|
|
X3DImporter_Macro.hpp
|
2016-09-29 15:50:24 +00:00
|
|
|
X3DImporter_Metadata.cpp
|
|
|
|
X3DImporter_Networking.cpp
|
|
|
|
X3DImporter_Node.hpp
|
|
|
|
X3DImporter_Postprocess.cpp
|
|
|
|
X3DImporter_Rendering.cpp
|
|
|
|
X3DImporter_Shape.cpp
|
|
|
|
X3DImporter_Texturing.cpp
|
2017-07-11 17:28:40 +00:00
|
|
|
FIReader.hpp
|
|
|
|
FIReader.cpp
|
|
|
|
X3DVocabulary.cpp
|
2016-09-29 15:50:24 +00:00
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( GLTF
|
2015-11-29 18:13:51 +00:00
|
|
|
glTFAsset.h
|
|
|
|
glTFAsset.inl
|
|
|
|
glTFAssetWriter.h
|
|
|
|
glTFAssetWriter.inl
|
2015-11-26 01:36:22 +00:00
|
|
|
glTFImporter.cpp
|
|
|
|
glTFImporter.h
|
2015-11-27 00:16:48 +00:00
|
|
|
glTFExporter.h
|
|
|
|
glTFExporter.cpp
|
2017-07-20 17:59:21 +00:00
|
|
|
glTF2Asset.h
|
|
|
|
glTF2Asset.inl
|
|
|
|
glTF2AssetWriter.h
|
|
|
|
glTF2AssetWriter.inl
|
2017-08-24 21:15:48 +00:00
|
|
|
glTF2Importer.cpp
|
|
|
|
glTF2Importer.h
|
2017-07-20 17:59:21 +00:00
|
|
|
glTF2Exporter.h
|
|
|
|
glTF2Exporter.cpp
|
2015-11-25 21:03:39 +00:00
|
|
|
)
|
|
|
|
|
2016-06-14 18:27:40 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( 3MF
|
2016-05-07 12:16:33 +00:00
|
|
|
D3MFImporter.h
|
|
|
|
D3MFImporter.cpp
|
2017-11-20 21:36:17 +00:00
|
|
|
D3MFExporter.h
|
|
|
|
D3MFExporter.cpp
|
2016-05-07 12:16:33 +00:00
|
|
|
D3MFOpcPackage.h
|
|
|
|
D3MFOpcPackage.cpp
|
2017-11-20 21:36:17 +00:00
|
|
|
3MFXmlTags.h
|
2016-05-07 12:16:33 +00:00
|
|
|
)
|
|
|
|
|
2017-02-24 00:35:15 +00:00
|
|
|
ADD_ASSIMP_IMPORTER( MMD
|
|
|
|
MMDCpp14.h
|
|
|
|
MMDImporter.cpp
|
|
|
|
MMDImporter.h
|
|
|
|
MMDPmdParser.h
|
|
|
|
MMDPmxParser.h
|
|
|
|
MMDPmxParser.cpp
|
|
|
|
MMDVmdParser.h
|
|
|
|
)
|
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
SET( Step_SRCS
|
2018-01-13 09:27:45 +00:00
|
|
|
STEPFile.h
|
2015-05-19 03:44:54 +00:00
|
|
|
StepExporter.h
|
|
|
|
StepExporter.cpp
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( Step FILES ${Step_SRCS})
|
|
|
|
|
|
|
|
SET( Exporter_SRCS
|
|
|
|
Exporter.cpp
|
|
|
|
AssimpCExport.cpp
|
2018-01-06 00:18:33 +00:00
|
|
|
${HEADER_PATH}/BlobIOSystem.h
|
2015-05-19 03:44:54 +00:00
|
|
|
)
|
|
|
|
SOURCE_GROUP( Exporter FILES ${Exporter_SRCS})
|
|
|
|
|
|
|
|
SET( Extra_SRCS
|
|
|
|
MD4FileData.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( Extra FILES ${Extra_SRCS})
|
|
|
|
|
|
|
|
|
|
|
|
SET( Clipper_SRCS
|
|
|
|
../contrib/clipper/clipper.hpp
|
|
|
|
../contrib/clipper/clipper.cpp
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( Clipper FILES ${Clipper_SRCS})
|
|
|
|
|
|
|
|
SET( Poly2Tri_SRCS
|
|
|
|
../contrib/poly2tri/poly2tri/common/shapes.cc
|
|
|
|
../contrib/poly2tri/poly2tri/common/shapes.h
|
|
|
|
../contrib/poly2tri/poly2tri/common/utils.h
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/advancing_front.h
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/advancing_front.cc
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/cdt.cc
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/cdt.h
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/sweep.cc
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/sweep.h
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/sweep_context.cc
|
|
|
|
../contrib/poly2tri/poly2tri/sweep/sweep_context.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( Poly2Tri FILES ${Poly2Tri_SRCS})
|
|
|
|
|
|
|
|
SET( unzip_SRCS
|
|
|
|
../contrib/unzip/crypt.h
|
|
|
|
../contrib/unzip/ioapi.c
|
|
|
|
../contrib/unzip/ioapi.h
|
|
|
|
../contrib/unzip/unzip.c
|
|
|
|
../contrib/unzip/unzip.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( unzip FILES ${unzip_SRCS})
|
|
|
|
|
2017-11-27 20:48:33 +00:00
|
|
|
SET( ziplib_SRCS
|
|
|
|
../contrib/zip/src/miniz.h
|
|
|
|
../contrib/zip/src/zip.c
|
|
|
|
../contrib/zip/src/zip.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SOURCE_GROUP( ziplib FILES ${ziplib_SRCS} )
|
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
SET ( openddl_parser_SRCS
|
|
|
|
../contrib/openddlparser/code/OpenDDLParser.cpp
|
|
|
|
../contrib/openddlparser/code/DDLNode.cpp
|
2015-10-01 18:29:15 +00:00
|
|
|
../contrib/openddlparser/code/OpenDDLCommon.cpp
|
|
|
|
../contrib/openddlparser/code/OpenDDLExport.cpp
|
2015-05-19 03:44:54 +00:00
|
|
|
../contrib/openddlparser/code/Value.cpp
|
2017-06-25 11:21:36 +00:00
|
|
|
../contrib/openddlparser/code/OpenDDLStream.cpp
|
2015-05-19 03:44:54 +00:00
|
|
|
../contrib/openddlparser/include/openddlparser/OpenDDLParser.h
|
|
|
|
../contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h
|
|
|
|
../contrib/openddlparser/include/openddlparser/OpenDDLCommon.h
|
2015-10-01 18:29:15 +00:00
|
|
|
../contrib/openddlparser/include/openddlparser/OpenDDLExport.h
|
2017-06-25 11:21:36 +00:00
|
|
|
../contrib/openddlparser/include/openddlparser/OpenDDLStream.h
|
2015-05-19 03:44:54 +00:00
|
|
|
../contrib/openddlparser/include/openddlparser/DDLNode.h
|
|
|
|
../contrib/openddlparser/include/openddlparser/Value.h
|
|
|
|
)
|
|
|
|
SOURCE_GROUP( openddl_parser FILES ${openddl_parser_SRCS})
|
|
|
|
|
2016-08-03 00:40:53 +00:00
|
|
|
SET ( open3dgc_SRCS
|
2016-09-09 13:38:43 +00:00
|
|
|
../contrib/Open3DGC/o3dgcAdjacencyInfo.h
|
2016-08-03 00:40:53 +00:00
|
|
|
../contrib/Open3DGC/o3dgcArithmeticCodec.cpp
|
2016-09-09 13:38:43 +00:00
|
|
|
../contrib/Open3DGC/o3dgcArithmeticCodec.h
|
|
|
|
../contrib/Open3DGC/o3dgcBinaryStream.h
|
|
|
|
../contrib/Open3DGC/o3dgcCommon.h
|
|
|
|
../contrib/Open3DGC/o3dgcDVEncodeParams.h
|
2016-08-03 00:40:53 +00:00
|
|
|
../contrib/Open3DGC/o3dgcDynamicVectorDecoder.cpp
|
2016-09-09 13:38:43 +00:00
|
|
|
../contrib/Open3DGC/o3dgcDynamicVectorDecoder.h
|
2016-08-03 00:40:53 +00:00
|
|
|
../contrib/Open3DGC/o3dgcDynamicVectorEncoder.cpp
|
2016-09-09 13:38:43 +00:00
|
|
|
../contrib/Open3DGC/o3dgcDynamicVectorEncoder.h
|
|
|
|
../contrib/Open3DGC/o3dgcDynamicVector.h
|
|
|
|
../contrib/Open3DGC/o3dgcFIFO.h
|
|
|
|
../contrib/Open3DGC/o3dgcIndexedFaceSet.h
|
|
|
|
../contrib/Open3DGC/o3dgcIndexedFaceSet.inl
|
|
|
|
../contrib/Open3DGC/o3dgcSC3DMCDecoder.h
|
|
|
|
../contrib/Open3DGC/o3dgcSC3DMCDecoder.inl
|
|
|
|
../contrib/Open3DGC/o3dgcSC3DMCEncodeParams.h
|
|
|
|
../contrib/Open3DGC/o3dgcSC3DMCEncoder.h
|
|
|
|
../contrib/Open3DGC/o3dgcSC3DMCEncoder.inl
|
|
|
|
../contrib/Open3DGC/o3dgcTimer.h
|
2016-08-03 00:40:53 +00:00
|
|
|
../contrib/Open3DGC/o3dgcTools.cpp
|
|
|
|
../contrib/Open3DGC/o3dgcTriangleFans.cpp
|
2016-09-09 13:38:43 +00:00
|
|
|
../contrib/Open3DGC/o3dgcTriangleFans.h
|
|
|
|
../contrib/Open3DGC/o3dgcTriangleListDecoder.h
|
|
|
|
../contrib/Open3DGC/o3dgcTriangleListDecoder.inl
|
|
|
|
../contrib/Open3DGC/o3dgcTriangleListEncoder.h
|
|
|
|
../contrib/Open3DGC/o3dgcTriangleListEncoder.inl
|
|
|
|
../contrib/Open3DGC/o3dgcVector.h
|
|
|
|
../contrib/Open3DGC/o3dgcVector.inl
|
2016-08-03 00:40:53 +00:00
|
|
|
)
|
|
|
|
SOURCE_GROUP( open3dgc FILES ${open3dgc_SRCS})
|
|
|
|
|
2016-08-14 13:27:16 +00:00
|
|
|
# Check dependencies for glTF importer with Open3DGC-compression.
|
|
|
|
# RT-extensions is used in "contrib/Open3DGC/o3dgcTimer.h" for collecting statistics. Pointed file
|
|
|
|
# has implementation for different platforms: WIN32, __MACH__ and other ("else" block).
|
|
|
|
FIND_PACKAGE(RT QUIET)
|
|
|
|
IF (RT_FOUND OR MSVC)
|
2016-09-13 10:29:12 +00:00
|
|
|
SET( ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC 1 )
|
|
|
|
ADD_DEFINITIONS( -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 )
|
2016-08-14 13:27:16 +00:00
|
|
|
ELSE ()
|
|
|
|
SET (open3dgc_SRCS "")
|
|
|
|
MESSAGE (INFO " RT-extension not found. glTF import/export will be built without Open3DGC-compression.")
|
|
|
|
#!TODO: off course is better to remove statistics timers from o3dgc codec. Or propose to choose what to use.
|
|
|
|
ENDIF ()
|
2016-08-03 00:40:53 +00:00
|
|
|
|
2015-11-26 01:36:22 +00:00
|
|
|
INCLUDE_DIRECTORIES( "../contrib/rapidjson/include" )
|
2016-08-03 00:40:53 +00:00
|
|
|
INCLUDE_DIRECTORIES( "../contrib" )
|
2015-11-26 01:36:22 +00:00
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
# VC2010 fixes
|
|
|
|
if(MSVC10)
|
|
|
|
option( VC10_STDINT_FIX "Fix for VC10 Compiler regarding pstdint.h redefinition errors" OFF )
|
|
|
|
if( VC10_STDINT_FIX )
|
|
|
|
ADD_DEFINITIONS( -D_STDINT )
|
|
|
|
endif( VC10_STDINT_FIX )
|
|
|
|
endif(MSVC10)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT )
|
|
|
|
|
|
|
|
if ( MSVC )
|
|
|
|
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
|
|
|
|
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
|
|
|
|
endif ( MSVC )
|
|
|
|
|
|
|
|
if (UNZIP_FOUND)
|
|
|
|
SET (unzip_compile_SRCS "")
|
|
|
|
else (UNZIP_FOUND)
|
|
|
|
SET (unzip_compile_SRCS ${unzip_SRCS})
|
2016-08-14 09:44:21 +00:00
|
|
|
INCLUDE_DIRECTORIES( "../contrib/unzip/" )
|
2015-05-19 03:44:54 +00:00
|
|
|
endif (UNZIP_FOUND)
|
|
|
|
|
|
|
|
MESSAGE(STATUS "Enabled formats:${ASSIMP_IMPORTERS_ENABLED}")
|
|
|
|
MESSAGE(STATUS "Disabled formats:${ASSIMP_IMPORTERS_DISABLED}")
|
|
|
|
|
|
|
|
SET( assimp_src
|
|
|
|
# Assimp Files
|
|
|
|
${Core_SRCS}
|
|
|
|
${Common_SRCS}
|
|
|
|
${Logging_SRCS}
|
|
|
|
${Exporter_SRCS}
|
|
|
|
${PostProcessing_SRCS}
|
|
|
|
${MaterialSystem_SRCS}
|
|
|
|
${Step_SRCS}
|
|
|
|
|
|
|
|
# Model Support
|
|
|
|
${ASSIMP_LOADER_SRCS}
|
|
|
|
|
|
|
|
# Third-party libraries
|
|
|
|
${IrrXML_SRCS}
|
|
|
|
${unzip_compile_SRCS}
|
|
|
|
${Poly2Tri_SRCS}
|
|
|
|
${Clipper_SRCS}
|
|
|
|
${openddl_parser_SRCS}
|
2016-08-03 00:40:53 +00:00
|
|
|
${open3dgc_SRCS}
|
2017-11-27 20:48:33 +00:00
|
|
|
${ziplib_SRCS}
|
2015-05-19 03:44:54 +00:00
|
|
|
# Necessary to show the headers in the project when using the VC++ generator:
|
|
|
|
|
|
|
|
${PUBLIC_HEADERS}
|
|
|
|
${COMPILER_HEADERS}
|
|
|
|
|
|
|
|
)
|
2016-04-23 07:42:05 +00:00
|
|
|
ADD_DEFINITIONS( -DOPENDDLPARSER_BUILD )
|
2015-05-19 03:44:54 +00:00
|
|
|
|
2015-06-28 22:09:18 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
2017-04-27 15:19:51 +00:00
|
|
|
${IRRXML_INCLUDE_DIR}
|
|
|
|
../contrib/openddlparser/include
|
2015-05-19 03:44:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER)
|
|
|
|
SET( assimp_src ${assimp_src} ${C4D_SRCS})
|
|
|
|
INCLUDE_DIRECTORIES(${C4D_INCLUDES})
|
|
|
|
ENDIF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER)
|
|
|
|
|
|
|
|
ADD_LIBRARY( assimp ${assimp_src} )
|
|
|
|
|
2017-04-27 15:19:51 +00:00
|
|
|
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES} ${IRRXML_LIBRARY} )
|
2015-05-19 03:44:54 +00:00
|
|
|
|
|
|
|
if(ANDROID AND ASSIMP_ANDROID_JNIIOSYSTEM)
|
|
|
|
set(ASSIMP_ANDROID_JNIIOSYSTEM_PATH port/AndroidJNI)
|
|
|
|
add_subdirectory(../${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/ ../${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/)
|
|
|
|
target_link_libraries(assimp android_jniiosystem)
|
|
|
|
endif(ANDROID AND ASSIMP_ANDROID_JNIIOSYSTEM)
|
|
|
|
|
|
|
|
IF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER)
|
2016-07-01 14:57:45 +00:00
|
|
|
TARGET_LINK_LIBRARIES(assimp optimized ${C4D_RELEASE_LIBRARIES})
|
|
|
|
TARGET_LINK_LIBRARIES(assimp debug ${C4D_DEBUG_LIBRARIES})
|
2015-05-19 03:44:54 +00:00
|
|
|
TARGET_LINK_LIBRARIES(assimp ${C4D_EXTRA_LIBRARIES})
|
|
|
|
ENDIF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER)
|
|
|
|
|
|
|
|
if( MSVC )
|
|
|
|
# in order to prevent DLL hell, each of the DLLs have to be suffixed with the major version and msvc prefix
|
|
|
|
if( MSVC70 OR MSVC71 )
|
|
|
|
set(MSVC_PREFIX "vc70")
|
|
|
|
elseif( MSVC80 )
|
|
|
|
set(MSVC_PREFIX "vc80")
|
|
|
|
elseif( MSVC90 )
|
|
|
|
set(MSVC_PREFIX "vc90")
|
|
|
|
elseif( MSVC10 )
|
|
|
|
set(MSVC_PREFIX "vc100")
|
|
|
|
elseif( MSVC11 )
|
|
|
|
set(MSVC_PREFIX "vc110")
|
|
|
|
elseif( MSVC12 )
|
|
|
|
set(MSVC_PREFIX "vc120")
|
2015-12-09 20:58:29 +00:00
|
|
|
elseif( MSVC14 )
|
|
|
|
set(MSVC_PREFIX "vc140")
|
2015-05-19 03:44:54 +00:00
|
|
|
else()
|
2015-12-09 20:58:29 +00:00
|
|
|
set(MSVC_PREFIX "vc150")
|
2015-05-19 03:44:54 +00:00
|
|
|
endif()
|
|
|
|
set(LIBRARY_SUFFIX "${ASSIMP_LIBRARY_SUFFIX}-${MSVC_PREFIX}-mt" CACHE STRING "the suffix for the assimp windows library")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES( assimp PROPERTIES
|
|
|
|
VERSION ${ASSIMP_VERSION}
|
|
|
|
SOVERSION ${ASSIMP_SOVERSION} # use full version
|
|
|
|
OUTPUT_NAME assimp${LIBRARY_SUFFIX}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (APPLE)
|
2017-11-19 22:10:05 +00:00
|
|
|
SET_TARGET_PROPERTIES( assimp PROPERTIES
|
|
|
|
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${ASSIMP_LIB_INSTALL_DIR}"
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_FRAMEWORK)
|
|
|
|
SET_TARGET_PROPERTIES( assimp PROPERTIES
|
|
|
|
FRAMEWORK TRUE
|
|
|
|
FRAMEWORK_VERSION C
|
|
|
|
MACOSX_FRAMEWORK_IDENTIFIER net.sf.assimp
|
|
|
|
PUBLIC_HEADER "${PUBLIC_HEADERS}"
|
|
|
|
)
|
|
|
|
|
|
|
|
# PUBLIC_HEADER option does not support directory structure creation
|
|
|
|
# add ./Compiler/*.h to assimp.framework via copy command
|
2018-01-06 00:18:33 +00:00
|
|
|
ADD_CUSTOM_COMMAND(TARGET assimp POST_BUILD
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
2017-11-19 22:10:05 +00:00
|
|
|
"../${HEADER_PATH}/Compiler"
|
|
|
|
assimp.framework/Headers/Compiler
|
|
|
|
COMMENT "Copying public ./Compiler/ header files to framework bundle's Headers/Compiler/")
|
2018-01-03 16:22:07 +00:00
|
|
|
ENDIF(BUILD_FRAMEWORK)
|
|
|
|
ENDIF(APPLE)
|
2015-05-19 03:44:54 +00:00
|
|
|
|
|
|
|
# Build against external unzip, or add ../contrib/unzip so
|
|
|
|
# assimp can #include "unzip.h"
|
|
|
|
if (UNZIP_FOUND)
|
|
|
|
INCLUDE_DIRECTORIES(${UNZIP_INCLUDE_DIRS})
|
|
|
|
TARGET_LINK_LIBRARIES(assimp ${UNZIP_LIBRARIES})
|
|
|
|
else (UNZIP_FOUND)
|
2016-06-14 18:27:40 +00:00
|
|
|
INCLUDE_DIRECTORIES("../")
|
2015-05-19 03:44:54 +00:00
|
|
|
endif (UNZIP_FOUND)
|
|
|
|
|
2016-08-14 13:27:16 +00:00
|
|
|
# Add RT-extension library for glTF importer with Open3DGC-compression.
|
|
|
|
IF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
|
2016-09-15 17:39:39 +00:00
|
|
|
TARGET_LINK_LIBRARIES(assimp ${RT_LIBRARY})
|
2016-08-14 13:27:16 +00:00
|
|
|
ENDIF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
|
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
INSTALL( TARGETS assimp
|
|
|
|
LIBRARY DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
|
|
|
ARCHIVE DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
|
|
|
RUNTIME DESTINATION ${ASSIMP_BIN_INSTALL_DIR}
|
2017-11-19 22:10:05 +00:00
|
|
|
FRAMEWORK DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
2015-05-19 03:44:54 +00:00
|
|
|
COMPONENT ${LIBASSIMP_COMPONENT})
|
|
|
|
INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev)
|
|
|
|
INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)
|
2017-11-19 22:10:05 +00:00
|
|
|
|
2015-05-19 03:44:54 +00:00
|
|
|
if (ASSIMP_ANDROID_JNIIOSYSTEM)
|
2015-11-16 06:48:17 +00:00
|
|
|
INSTALL(FILES ${HEADER_PATH}/${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/AndroidJNIIOSystem.h
|
2015-05-19 03:44:54 +00:00
|
|
|
DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT assimp-dev)
|
2018-01-03 16:22:07 +00:00
|
|
|
ENDIF(ASSIMP_ANDROID_JNIIOSYSTEM)
|
2015-05-19 03:44:54 +00:00
|
|
|
|
|
|
|
if(MSVC AND ASSIMP_INSTALL_PDB)
|
2017-07-29 11:45:25 +00:00
|
|
|
IF(CMAKE_GENERATOR MATCHES "^Visual Studio")
|
|
|
|
install(FILES ${Assimp_BINARY_DIR}/code/Debug/assimp${LIBRARY_SUFFIX}${CMAKE_DEBUG_POSTFIX}.pdb
|
|
|
|
DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
|
|
|
CONFIGURATIONS Debug
|
|
|
|
)
|
|
|
|
install(FILES ${Assimp_BINARY_DIR}/code/RelWithDebInfo/assimp${LIBRARY_SUFFIX}.pdb
|
|
|
|
DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
|
|
|
CONFIGURATIONS RelWithDebInfo
|
|
|
|
)
|
|
|
|
ELSE()
|
|
|
|
install(FILES ${Assimp_BINARY_DIR}/code/assimp${LIBRARY_SUFFIX}${CMAKE_DEBUG_POSTFIX}.pdb
|
|
|
|
DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
|
|
|
CONFIGURATIONS Debug
|
|
|
|
)
|
|
|
|
install(FILES ${Assimp_BINARY_DIR}/code/assimp${LIBRARY_SUFFIX}.pdb
|
|
|
|
DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
|
|
|
CONFIGURATIONS RelWithDebInfo
|
|
|
|
)
|
|
|
|
ENDIF()
|
2018-01-03 16:22:07 +00:00
|
|
|
ENDIF ()
|
2016-11-17 18:57:24 +00:00
|
|
|
|
|
|
|
if (ASSIMP_COVERALLS)
|
|
|
|
include(Coveralls)
|
|
|
|
|
|
|
|
set(COVERAGE_SRCS ${assimp_src} ${TEST_SRCS} )
|
|
|
|
|
|
|
|
# Create the coveralls target.
|
|
|
|
coveralls_setup(
|
|
|
|
"${COVERAGE_SRCS}" # The source files.
|
|
|
|
ON # If we should upload.
|
|
|
|
"${PROJECT_SOURCE_DIR}/cmake-modules/") # (Optional) Alternate project cmake module path.
|
2018-01-03 16:22:07 +00:00
|
|
|
ENDIF()
|