You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

743 lines
15 KiB

  1. # Listing and grouping of all the source files.
  2. # 1) Set the file lists for each component
  3. # 2) Create a Source Group for each component, for IDE project orginization
  4. # 3) Add libassimp using the file lists (eliminates duplication of file names between
  5. # source groups and library command)
  6. #
  7. cmake_minimum_required( VERSION 2.6 )
  8. SET( HEADER_PATH ../include/assimp )
  9. SET( COMPILER_HEADERS
  10. ${HEADER_PATH}/Compiler/pushpack1.h
  11. ${HEADER_PATH}/Compiler/poppack1.h
  12. ${HEADER_PATH}/Compiler/pstdint.h
  13. )
  14. SOURCE_GROUP( Compiler FILES ${COMPILER_HEADERS})
  15. SET( PUBLIC_HEADERS
  16. ${HEADER_PATH}/anim.h
  17. ${HEADER_PATH}/ai_assert.h
  18. ${HEADER_PATH}/camera.h
  19. ${HEADER_PATH}/color4.h
  20. ${HEADER_PATH}/color4.inl
  21. ${HEADER_PATH}/config.h
  22. ${HEADER_PATH}/defs.h
  23. ${HEADER_PATH}/cfileio.h
  24. ${HEADER_PATH}/light.h
  25. ${HEADER_PATH}/material.h
  26. ${HEADER_PATH}/material.inl
  27. ${HEADER_PATH}/matrix3x3.h
  28. ${HEADER_PATH}/matrix3x3.inl
  29. ${HEADER_PATH}/matrix4x4.h
  30. ${HEADER_PATH}/matrix4x4.inl
  31. ${HEADER_PATH}/mesh.h
  32. ${HEADER_PATH}/postprocess.h
  33. ${HEADER_PATH}/quaternion.h
  34. ${HEADER_PATH}/quaternion.inl
  35. ${HEADER_PATH}/scene.h
  36. ${HEADER_PATH}/metadata.h
  37. ${HEADER_PATH}/texture.h
  38. ${HEADER_PATH}/types.h
  39. ${HEADER_PATH}/vector2.h
  40. ${HEADER_PATH}/vector2.inl
  41. ${HEADER_PATH}/vector3.h
  42. ${HEADER_PATH}/vector3.inl
  43. ${HEADER_PATH}/version.h
  44. ${HEADER_PATH}/cimport.h
  45. ${HEADER_PATH}/importerdesc.h
  46. ${HEADER_PATH}/Importer.hpp
  47. ${HEADER_PATH}/DefaultLogger.hpp
  48. ${HEADER_PATH}/ProgressHandler.hpp
  49. ${HEADER_PATH}/IOStream.hpp
  50. ${HEADER_PATH}/IOSystem.hpp
  51. ${HEADER_PATH}/Logger.hpp
  52. ${HEADER_PATH}/LogStream.hpp
  53. ${HEADER_PATH}/NullLogger.hpp
  54. ${HEADER_PATH}/cexport.h
  55. ${HEADER_PATH}/Exporter.hpp
  56. )
  57. SET( Core_SRCS
  58. Assimp.cpp
  59. )
  60. SET( Boost_SRCS
  61. BoostWorkaround/boost/math/common_factor_rt.hpp
  62. BoostWorkaround/boost/foreach.hpp
  63. BoostWorkaround/boost/format.hpp
  64. BoostWorkaround/boost/scoped_array.hpp
  65. BoostWorkaround/boost/scoped_ptr.hpp
  66. BoostWorkaround/boost/shared_array.hpp
  67. BoostWorkaround/boost/shared_ptr.hpp
  68. BoostWorkaround/boost/make_shared.hpp
  69. BoostWorkaround/boost/static_assert.hpp
  70. BoostWorkaround/boost/tuple/tuple.hpp
  71. )
  72. SOURCE_GROUP(Boost FILES ${Boost_SRCS})
  73. SET( Logging_SRCS
  74. ${HEADER_PATH}/DefaultLogger.hpp
  75. ${HEADER_PATH}/LogStream.hpp
  76. ${HEADER_PATH}/Logger.hpp
  77. ${HEADER_PATH}/NullLogger.hpp
  78. Win32DebugLogStream.h
  79. DefaultLogger.cpp
  80. FileLogStream.h
  81. StdOStreamLogStream.h
  82. )
  83. SOURCE_GROUP(Logging FILES ${Logging_SRCS})
  84. SET( Common_SRCS
  85. fast_atof.h
  86. qnan.h
  87. BaseImporter.cpp
  88. BaseImporter.h
  89. BaseProcess.cpp
  90. BaseProcess.h
  91. Importer.h
  92. ScenePrivate.h
  93. PostStepRegistry.cpp
  94. ImporterRegistry.cpp
  95. ByteSwap.h
  96. DefaultProgressHandler.h
  97. DefaultIOStream.cpp
  98. DefaultIOStream.h
  99. DefaultIOSystem.cpp
  100. DefaultIOSystem.h
  101. CInterfaceIOWrapper.h
  102. Hash.h
  103. Importer.cpp
  104. IFF.h
  105. MemoryIOWrapper.h
  106. ParsingUtils.h
  107. StreamReader.h
  108. StringComparison.h
  109. SGSpatialSort.cpp
  110. SGSpatialSort.h
  111. VertexTriangleAdjacency.cpp
  112. VertexTriangleAdjacency.h
  113. GenericProperty.h
  114. SpatialSort.cpp
  115. SpatialSort.h
  116. SceneCombiner.cpp
  117. SceneCombiner.h
  118. ScenePreprocessor.cpp
  119. ScenePreprocessor.h
  120. SkeletonMeshBuilder.cpp
  121. SkeletonMeshBuilder.h
  122. SplitByBoneCountProcess.cpp
  123. SplitByBoneCountProcess.h
  124. SmoothingGroups.h
  125. StandardShapes.cpp
  126. StandardShapes.h
  127. TargetAnimation.cpp
  128. TargetAnimation.h
  129. RemoveComments.cpp
  130. RemoveComments.h
  131. Subdivision.cpp
  132. Subdivision.h
  133. Vertex.h
  134. LineSplitter.h
  135. TinyFormatter.h
  136. Profiler.h
  137. LogAux.h
  138. Bitmap.cpp
  139. Bitmap.h
  140. )
  141. SOURCE_GROUP(Common FILES ${Common_SRCS})
  142. SET( 3DS_SRCS
  143. 3DSConverter.cpp
  144. 3DSHelper.h
  145. 3DSLoader.cpp
  146. 3DSLoader.h
  147. )
  148. SOURCE_GROUP(3DS FILES ${3DS_SRCS})
  149. SET( AC_SRCS
  150. ACLoader.cpp
  151. ACLoader.h
  152. )
  153. SOURCE_GROUP( AC FILES ${AC_SRCS})
  154. SET( ASE_SRCS
  155. ASELoader.cpp
  156. ASELoader.h
  157. ASEParser.cpp
  158. ASEParser.h
  159. )
  160. SOURCE_GROUP( ASE FILES ${ASE_SRCS})
  161. SET( B3D_SRCS
  162. B3DImporter.cpp
  163. B3DImporter.h
  164. )
  165. SOURCE_GROUP( B3D FILES ${B3D_SRCS})
  166. SET( BVH_SRCS
  167. BVHLoader.cpp
  168. BVHLoader.h
  169. )
  170. SOURCE_GROUP( BVH FILES ${BVH_SRCS})
  171. SET( Collada_SRCS
  172. ColladaHelper.h
  173. ColladaLoader.cpp
  174. ColladaLoader.h
  175. ColladaParser.cpp
  176. ColladaParser.h
  177. ColladaExporter.h
  178. ColladaExporter.cpp
  179. )
  180. SOURCE_GROUP( Collada FILES ${Collada_SRCS})
  181. SET( DXF_SRCS
  182. DXFLoader.cpp
  183. DXFLoader.h
  184. DXFHelper.h
  185. )
  186. SOURCE_GROUP( DXF FILES ${DXF_SRCS})
  187. SET( CSM_SRCS
  188. CSMLoader.cpp
  189. CSMLoader.h
  190. )
  191. SOURCE_GROUP( CSM FILES ${CSM_SRCS})
  192. SET( HMP_SRCS
  193. HMPFileData.h
  194. HMPLoader.cpp
  195. HMPLoader.h
  196. HalfLifeFileData.h
  197. )
  198. SOURCE_GROUP( HMP FILES ${HMP_SRCS})
  199. SET( Irr_SRCS
  200. IRRLoader.cpp
  201. IRRLoader.h
  202. IRRMeshLoader.cpp
  203. IRRMeshLoader.h
  204. IRRShared.cpp
  205. IRRShared.h
  206. )
  207. SOURCE_GROUP( Irr FILES ${Irr_SRCS})
  208. SET( LWO_SRCS
  209. LWOAnimation.cpp
  210. LWOAnimation.h
  211. LWOBLoader.cpp
  212. LWOFileData.h
  213. LWOLoader.cpp
  214. LWOLoader.h
  215. LWOMaterial.cpp
  216. )
  217. SOURCE_GROUP( LWO FILES ${LWO_SRCS})
  218. SET( LWS_SRCS
  219. LWSLoader.cpp
  220. LWSLoader.h
  221. )
  222. SOURCE_GROUP( LWS FILES ${LWS_SRCS})
  223. SET( MD2_SRCS
  224. MD2FileData.h
  225. MD2Loader.cpp
  226. MD2Loader.h
  227. MD2NormalTable.h
  228. )
  229. SOURCE_GROUP( MD2 FILES ${MD2_SRCS})
  230. SET( MD3_SRCS
  231. MD3FileData.h
  232. MD3Loader.cpp
  233. MD3Loader.h
  234. )
  235. SOURCE_GROUP( MD3 FILES ${MD3_SRCS})
  236. SET( MD5_SRCS
  237. MD5Loader.cpp
  238. MD5Loader.h
  239. MD5Parser.cpp
  240. MD5Parser.h
  241. )
  242. SOURCE_GROUP( MD5 FILES ${MD5_SRCS})
  243. SET( MDC_SRCS
  244. MDCFileData.h
  245. MDCLoader.cpp
  246. MDCLoader.h
  247. MDCNormalTable.h
  248. )
  249. SOURCE_GROUP( MDC FILES ${MDC_SRCS})
  250. SET( MDL_SRCS
  251. MDLDefaultColorMap.h
  252. MDLFileData.h
  253. MDLLoader.cpp
  254. MDLLoader.h
  255. MDLMaterialLoader.cpp
  256. )
  257. SOURCE_GROUP( MDL FILES ${MDL_SRCS})
  258. SET( MaterialSystem_SRCS
  259. MaterialSystem.cpp
  260. MaterialSystem.h
  261. )
  262. SOURCE_GROUP( MaterialSystem FILES ${MaterialSystem_SRCS})
  263. SET( NFF_SRCS
  264. NFFLoader.cpp
  265. NFFLoader.h
  266. )
  267. SOURCE_GROUP( NFF FILES ${NFF_SRCS})
  268. SET( NDO_SRCS
  269. NDOLoader.cpp
  270. NDOLoader.h
  271. )
  272. SOURCE_GROUP( NDO FILES ${NDO_SRCS})
  273. SET( OFFFormat_SRCS
  274. OFFLoader.cpp
  275. OFFLoader.h
  276. )
  277. SOURCE_GROUP( OFFFormat FILES ${OFFFormat_SRCS})
  278. SET( Obj_SRCS
  279. ObjFileData.h
  280. ObjFileImporter.cpp
  281. ObjFileImporter.h
  282. ObjFileMtlImporter.cpp
  283. ObjFileMtlImporter.h
  284. ObjFileParser.cpp
  285. ObjFileParser.h
  286. ObjTools.h
  287. ObjExporter.h
  288. ObjExporter.cpp
  289. )
  290. SOURCE_GROUP( Obj FILES ${Obj_SRCS})
  291. SET( Ogre_SRCS
  292. OgreImporter.h
  293. OgreStructs.h
  294. OgreParsingUtils.h
  295. OgreBinarySerializer.h
  296. OgreXmlSerializer.h
  297. OgreImporter.cpp
  298. OgreStructs.cpp
  299. OgreBinarySerializer.cpp
  300. OgreXmlSerializer.cpp
  301. OgreMaterial.cpp
  302. )
  303. SOURCE_GROUP( Ogre FILES ${Ogre_SRCS})
  304. SET( Ply_SRCS
  305. PlyLoader.cpp
  306. PlyLoader.h
  307. PlyParser.cpp
  308. PlyParser.h
  309. PlyExporter.cpp
  310. PlyExporter.h
  311. )
  312. SOURCE_GROUP( Ply FILES ${Ply_SRCS})
  313. SET(MS3D_SRCS
  314. MS3DLoader.cpp
  315. MS3DLoader.h
  316. )
  317. SOURCE_GROUP( MS3D FILES ${MS3D_SRCS})
  318. SET(COB_SRCS
  319. COBLoader.cpp
  320. COBLoader.h
  321. COBScene.h
  322. )
  323. SOURCE_GROUP( COB FILES ${COB_SRCS})
  324. SET(BLENDER_SRCS
  325. BlenderLoader.cpp
  326. BlenderLoader.h
  327. BlenderDNA.cpp
  328. BlenderDNA.h
  329. BlenderDNA.inl
  330. BlenderScene.cpp
  331. BlenderScene.h
  332. BlenderSceneGen.h
  333. BlenderIntermediate.h
  334. BlenderModifier.h
  335. BlenderModifier.cpp
  336. BlenderBMesh.h
  337. BlenderBMesh.cpp
  338. BlenderTessellator.h
  339. BlenderTessellator.cpp
  340. )
  341. SOURCE_GROUP( BLENDER FILES ${BLENDER_SRCS})
  342. SET(IFC_SRCS
  343. IFCLoader.cpp
  344. IFCLoader.h
  345. IFCReaderGen.cpp
  346. IFCReaderGen.h
  347. IFCUtil.h
  348. IFCUtil.cpp
  349. IFCGeometry.cpp
  350. IFCMaterial.cpp
  351. IFCProfile.cpp
  352. IFCCurve.cpp
  353. IFCBoolean.cpp
  354. IFCOpenings.cpp
  355. STEPFile.h
  356. STEPFileReader.h
  357. STEPFileReader.cpp
  358. STEPFileEncoding.cpp
  359. STEPFileEncoding.h
  360. )
  361. SOURCE_GROUP( IFC FILES ${IFC_SRCS})
  362. SET( XGL_SRCS
  363. XGLLoader.cpp
  364. XGLLoader.h
  365. )
  366. SOURCE_GROUP( XGL FILES ${XGL_SRCS})
  367. SET(FBX_SRCS
  368. FBXImporter.cpp
  369. FBXCompileConfig.h
  370. FBXImporter.h
  371. FBXParser.cpp
  372. FBXParser.h
  373. FBXTokenizer.cpp
  374. FBXTokenizer.h
  375. FBXImportSettings.h
  376. FBXConverter.h
  377. FBXConverter.cpp
  378. FBXUtil.h
  379. FBXUtil.cpp
  380. FBXDocument.h
  381. FBXDocument.cpp
  382. FBXProperties.h
  383. FBXProperties.cpp
  384. FBXMeshGeometry.cpp
  385. FBXMaterial.cpp
  386. FBXModel.cpp
  387. FBXAnimation.cpp
  388. FBXNodeAttribute.cpp
  389. FBXDeformer.cpp
  390. FBXBinaryTokenizer.cpp
  391. FBXDocumentUtil.cpp
  392. )
  393. SOURCE_GROUP( FBX FILES ${FBX_SRCS})
  394. SET( PostProcessing_SRCS
  395. CalcTangentsProcess.cpp
  396. CalcTangentsProcess.h
  397. ComputeUVMappingProcess.cpp
  398. ComputeUVMappingProcess.h
  399. ConvertToLHProcess.cpp
  400. ConvertToLHProcess.h
  401. FindDegenerates.cpp
  402. FindDegenerates.h
  403. FindInstancesProcess.cpp
  404. FindInstancesProcess.h
  405. FindInvalidDataProcess.cpp
  406. FindInvalidDataProcess.h
  407. FixNormalsStep.cpp
  408. FixNormalsStep.h
  409. GenFaceNormalsProcess.cpp
  410. GenFaceNormalsProcess.h
  411. GenVertexNormalsProcess.cpp
  412. GenVertexNormalsProcess.h
  413. PretransformVertices.cpp
  414. PretransformVertices.h
  415. ImproveCacheLocality.cpp
  416. ImproveCacheLocality.h
  417. JoinVerticesProcess.cpp
  418. JoinVerticesProcess.h
  419. LimitBoneWeightsProcess.cpp
  420. LimitBoneWeightsProcess.h
  421. RemoveRedundantMaterials.cpp
  422. RemoveRedundantMaterials.h
  423. RemoveVCProcess.cpp
  424. RemoveVCProcess.h
  425. SortByPTypeProcess.cpp
  426. SortByPTypeProcess.h
  427. SplitLargeMeshes.cpp
  428. SplitLargeMeshes.h
  429. TextureTransform.cpp
  430. TextureTransform.h
  431. TriangulateProcess.cpp
  432. TriangulateProcess.h
  433. ValidateDataStructure.cpp
  434. ValidateDataStructure.h
  435. OptimizeGraph.cpp
  436. OptimizeGraph.h
  437. OptimizeMeshes.cpp
  438. OptimizeMeshes.h
  439. DeboneProcess.cpp
  440. DeboneProcess.h
  441. ProcessHelper.h
  442. ProcessHelper.cpp
  443. PolyTools.h
  444. MakeVerboseFormat.cpp
  445. MakeVerboseFormat.h
  446. )
  447. SOURCE_GROUP( PostProcessing FILES ${PostProcessing_SRCS})
  448. SET( Q3D_SRCS
  449. Q3DLoader.cpp
  450. Q3DLoader.h
  451. )
  452. SOURCE_GROUP( Q3D FILES ${Q3D_SRCS})
  453. SET( Q3BSP_SRCS
  454. Q3BSPFileData.h
  455. Q3BSPFileParser.h
  456. Q3BSPFileParser.cpp
  457. Q3BSPFileImporter.h
  458. Q3BSPFileImporter.cpp
  459. Q3BSPZipArchive.h
  460. Q3BSPZipArchive.cpp
  461. )
  462. SOURCE_GROUP( Q3BSP FILES ${Q3BSP_SRCS})
  463. SET( Raw_SRCS
  464. RawLoader.cpp
  465. RawLoader.h
  466. )
  467. SOURCE_GROUP( Raw FILES ${Raw_SRCS})
  468. SET( SMD_SRCS
  469. SMDLoader.cpp
  470. SMDLoader.h
  471. )
  472. SOURCE_GROUP( SMD FILES ${SMD_SRCS})
  473. SET( STL_SRCS
  474. STLLoader.cpp
  475. STLLoader.h
  476. STLExporter.h
  477. STLExporter.cpp
  478. )
  479. SOURCE_GROUP( STL FILES ${STL_SRCS})
  480. SET( Terragen_SRCS
  481. TerragenLoader.cpp
  482. TerragenLoader.h
  483. )
  484. SOURCE_GROUP( Terragen FILES ${Terragen_SRCS})
  485. SET( Unreal_SRCS
  486. UnrealLoader.cpp
  487. UnrealLoader.h
  488. )
  489. SOURCE_GROUP( Unreal FILES ${Unreal_SRCS})
  490. SET( XFile_SRCS
  491. XFileHelper.h
  492. XFileImporter.cpp
  493. XFileImporter.h
  494. XFileParser.cpp
  495. XFileParser.h
  496. )
  497. SOURCE_GROUP( XFile FILES ${XFile_SRCS})
  498. SET( Exporter_SRCS
  499. Exporter.cpp
  500. AssimpCExport.cpp
  501. BlobIOSystem.h
  502. )
  503. SOURCE_GROUP( Exporter FILES ${Exporter_SRCS})
  504. SET( Extra_SRCS
  505. MD4FileData.h
  506. )
  507. SOURCE_GROUP( Extra FILES ${Extra_SRCS})
  508. SET( IrrXML_SRCS
  509. irrXMLWrapper.h
  510. ../contrib/irrXML/CXMLReaderImpl.h
  511. ../contrib/irrXML/heapsort.h
  512. ../contrib/irrXML/irrArray.h
  513. ../contrib/irrXML/irrString.h
  514. ../contrib/irrXML/irrTypes.h
  515. ../contrib/irrXML/irrXML.cpp
  516. ../contrib/irrXML/irrXML.h
  517. )
  518. SOURCE_GROUP( IrrXML FILES ${IrrXML_SRCS})
  519. SET( ConvertUTF_SRCS
  520. ../contrib/ConvertUTF/ConvertUTF.h
  521. ../contrib/ConvertUTF/ConvertUTF.c
  522. )
  523. SOURCE_GROUP( ConvertUTF FILES ${ConvertUTF_SRCS})
  524. SET( Clipper_SRCS
  525. ../contrib/clipper/clipper.hpp
  526. ../contrib/clipper/clipper.cpp
  527. )
  528. SOURCE_GROUP( Clipper FILES ${Clipper_SRCS})
  529. SET( Poly2Tri_SRCS
  530. ../contrib/poly2tri/poly2tri/common/shapes.cc
  531. ../contrib/poly2tri/poly2tri/common/shapes.h
  532. ../contrib/poly2tri/poly2tri/common/utils.h
  533. ../contrib/poly2tri/poly2tri/sweep/advancing_front.h
  534. ../contrib/poly2tri/poly2tri/sweep/advancing_front.cc
  535. ../contrib/poly2tri/poly2tri/sweep/cdt.cc
  536. ../contrib/poly2tri/poly2tri/sweep/cdt.h
  537. ../contrib/poly2tri/poly2tri/sweep/sweep.cc
  538. ../contrib/poly2tri/poly2tri/sweep/sweep.h
  539. ../contrib/poly2tri/poly2tri/sweep/sweep_context.cc
  540. ../contrib/poly2tri/poly2tri/sweep/sweep_context.h
  541. )
  542. SOURCE_GROUP( Poly2Tri FILES ${Poly2Tri_SRCS})
  543. SET( unzip_SRCS
  544. ../contrib/unzip/crypt.h
  545. ../contrib/unzip/ioapi.c
  546. ../contrib/unzip/ioapi.h
  547. ../contrib/unzip/unzip.c
  548. ../contrib/unzip/unzip.h
  549. )
  550. SOURCE_GROUP( unzip FILES ${unzip_SRCS})
  551. # VC2010 fixes
  552. if(MSVC10)
  553. OPTION( VC10_STDINT_FIX "Fix for VC10 Compiler regarding pstdint.h redefinition errors" OFF )
  554. if( VC10_STDINT_FIX )
  555. ADD_DEFINITIONS( -D_STDINT )
  556. endif( VC10_STDINT_FIX )
  557. endif(MSVC10)
  558. ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT )
  559. if ( MSVC )
  560. ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
  561. ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
  562. endif ( MSVC )
  563. if (UNZIP_FOUND)
  564. SET (unzip_compile_SRCS "")
  565. else (UNZIP_FOUND)
  566. SET (unzip_compile_SRCS ${unzip_SRCS})
  567. endif (UNZIP_FOUND)
  568. SET( assimp_src
  569. # Assimp Files
  570. ${Core_SRCS}
  571. ${Common_SRCS}
  572. ${Logging_SRCS}
  573. ${Exporter_SRCS}
  574. ${PostProcessing_SRCS}
  575. # Model Support
  576. ${3DS_SRCS}
  577. ${AC_SRCS}
  578. ${ASE_SRCS}
  579. ${B3D_SRCS}
  580. ${BVH_SRCS}
  581. ${Collada_SRCS}
  582. ${DXF_SRCS}
  583. ${CSM_SRCS}
  584. ${HMP_SRCS}
  585. ${Irr_SRCS}
  586. ${LWO_SRCS}
  587. ${LWS_SRCS}
  588. ${MD2_SRCS}
  589. ${MD3_SRCS}
  590. ${MD5_SRCS}
  591. ${MDC_SRCS}
  592. ${MDL_SRCS}
  593. ${MaterialSystem_SRCS}
  594. ${NFF_SRCS}
  595. ${OFFFormat_SRCS}
  596. ${Obj_SRCS}
  597. ${Ogre_SRCS}
  598. ${Ply_SRCS}
  599. ${Q3D_SRCS}
  600. ${Q3BSP_SRCS}
  601. ${Raw_SRCS}
  602. ${SMD_SRCS}
  603. ${STL_SRCS}
  604. ${Terragen_SRCS}
  605. ${Unreal_SRCS}
  606. ${XFile_SRCS}
  607. ${Extra_SRCS}
  608. ${MS3D_SRCS}
  609. ${COB_SRCS}
  610. ${BLENDER_SRCS}
  611. ${NDO_SRCS}
  612. ${IFC_SRCS}
  613. ${XGL_SRCS}
  614. ${FBX_SRCS}
  615. # Third-party libraries
  616. ${IrrXML_SRCS}
  617. ${ConvertUTF_SRCS}
  618. ${unzip_compile_SRCS}
  619. ${Poly2Tri_SRCS}
  620. ${Clipper_SRCS}
  621. # Necessary to show the headers in the project when using the VC++ generator:
  622. ${Boost_SRCS}
  623. ${PUBLIC_HEADERS}
  624. ${COMPILER_HEADERS}
  625. # Old precompiled header
  626. # (removed because the precompiled header is not updated when visual studio switch configuration which leads to failed compilation.
  627. # Moreover it's a drag to recompile assimp entirely each time a modification is made to one of the included header, which is definitely counter-productive.)
  628. AssimpPCH.cpp
  629. )
  630. #ADD_MSVC_PRECOMPILED_HEADER("AssimpPCH.h" "AssimpPCH.cpp" assimp_src)
  631. ADD_LIBRARY( assimp ${assimp_src} )
  632. SET_PROPERTY(TARGET assimp PROPERTY DEBUG_POSTFIX ${ASSIMP_DEBUG_POSTFIX})
  633. TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES})
  634. SET_TARGET_PROPERTIES( assimp PROPERTIES
  635. VERSION ${ASSIMP_VERSION}
  636. SOVERSION ${ASSIMP_SOVERSION} # use full version
  637. OUTPUT_NAME assimp${ASSIMP_LIBRARY_SUFFIX}
  638. )
  639. if (APPLE)
  640. SET_TARGET_PROPERTIES( assimp PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
  641. endif()
  642. # Build against external unzip, or add ../contrib/unzip so
  643. # assimp can #include "unzip.h"
  644. if (UNZIP_FOUND)
  645. INCLUDE_DIRECTORIES(${UNZIP_INCLUDE_DIRS})
  646. TARGET_LINK_LIBRARIES(assimp ${UNZIP_LIBRARIES})
  647. else (UNZIP_FOUND)
  648. INCLUDE_DIRECTORIES("../contrib/unzip")
  649. endif (UNZIP_FOUND)
  650. INSTALL( TARGETS assimp
  651. LIBRARY DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
  652. ARCHIVE DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
  653. RUNTIME DESTINATION ${ASSIMP_BIN_INSTALL_DIR}
  654. COMPONENT ${LIBASSIMP_COMPONENT})
  655. INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev)
  656. INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)
  657. if(MSVC AND ASSIMP_INSTALL_PDB)
  658. install(FILES ${Assimp_BINARY_DIR}/code/Debug/assimp${ASSIMP_DEBUG_POSTFIX}.pdb
  659. DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
  660. CONFIGURATIONS Debug
  661. )
  662. install(FILES ${Assimp_BINARY_DIR}/code/RelWithDebInfo/assimp.pdb
  663. DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
  664. CONFIGURATIONS RelWithDebInfo
  665. )
  666. endif ()