CMakeLists.txt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. # CMakeLists.txt for Irrlicht in STK
  2. if(NOT SERVER_ONLY)
  3. find_package(PNG REQUIRED)
  4. find_package(JPEG REQUIRED)
  5. find_package(ZLIB REQUIRED)
  6. include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/"
  7. "${JPEG_INCLUDE_DIR}"
  8. "${PNG_INCLUDE_DIRS}"
  9. "${ZLIB_INCLUDE_DIR}"
  10. "${CMAKE_CURRENT_SOURCE_DIR}/../../src"
  11. "${CMAKE_CURRENT_SOURCE_DIR}/../graphics_engine/include")
  12. else()
  13. include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/"
  14. "${CMAKE_CURRENT_SOURCE_DIR}/../../src")
  15. find_package(ZLIB REQUIRED)
  16. include_directories("${ZLIB_INCLUDE_DIR}")
  17. add_definitions(-DNO_IRR_COMPILE_WITH_LIBPNG_)
  18. add_definitions(-DNO_IRR_COMPILE_WITH_LIBJPEG_)
  19. add_definitions(-DNO_IRR_COMPILE_WITH_BMP_LOADER_)
  20. add_definitions(-DNO_IRR_COMPILE_WITH_PNG_LOADER_)
  21. add_definitions(-DNO_IRR_COMPILE_WITH_JPG_LOADER_)
  22. add_definitions(-DNO_IRR_COMPILE_WITH_BMP_WRITER_)
  23. add_definitions(-DNO_IRR_COMPILE_WITH_PNG_WRITER_)
  24. add_definitions(-DNO_IRR_COMPILE_WITH_JPG_WRITER_)
  25. add_definitions(-DNO_IRR_COMPILE_WITH_OPENGL_)
  26. add_definitions(-DNO_IRR_COMPILE_WITH_X11_)
  27. add_definitions(-DNO_IRR_COMPILE_WITH_WAYLAND_DEVICE_)
  28. add_definitions(-DNO_IRR_COMPILE_WITH_SDL_DEVICE_)
  29. add_definitions(-DNO_IRR_COMPILE_WITH_DIRECT3D_9_)
  30. add_definitions(-DNO_IRR_COMPILE_WITH_VULKAN_)
  31. endif()
  32. if(APPLE AND NOT IOS)
  33. include_directories("${CMAKE_CURRENT_SOURCE_DIR}/source/Irrlicht/MacOSX" "${CMAKE_CURRENT_SOURCE_DIR}/source/Irrlicht")
  34. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch ${ARCHFLAGS}")
  35. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch ${ARCHFLAGS} -F/Library/Frameworks")
  36. endif()
  37. add_definitions(-DNDEBUG=1 -DIRRLICHT_EXPORTS=1 -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES)
  38. if(UNIX OR MINGW)
  39. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
  40. endif()
  41. if(WIN32)
  42. add_definitions(-D_IRR_STATIC_LIB_)
  43. add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
  44. else()
  45. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -fstrict-aliasing")
  46. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pipe -fstrict-aliasing")
  47. endif()
  48. if(USE_GLES2)
  49. if (NOT IOS)
  50. add_definitions(-D_IRR_COMPILE_WITH_OGLES2_)
  51. endif()
  52. add_definitions(-DNO_IRR_COMPILE_WITH_OPENGL_)
  53. endif()
  54. if(CYGWIN)
  55. add_definitions(-DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
  56. endif()
  57. set(IRRLICHT_SOURCES
  58. source/Irrlicht/CAnimatedMeshSceneNode.cpp
  59. source/Irrlicht/CAttributes.cpp
  60. source/Irrlicht/CBillboardSceneNode.cpp
  61. source/Irrlicht/CBoneSceneNode.cpp
  62. source/Irrlicht/CCameraSceneNode.cpp
  63. source/Irrlicht/CColorConverter.cpp
  64. source/Irrlicht/CCubeSceneNode.cpp
  65. source/Irrlicht/CDefaultGUIElementFactory.cpp
  66. source/Irrlicht/CDefaultSceneNodeAnimatorFactory.cpp
  67. source/Irrlicht/CDefaultSceneNodeFactory.cpp
  68. source/Irrlicht/CDummyTransformationSceneNode.cpp
  69. source/Irrlicht/CEmptySceneNode.cpp
  70. source/Irrlicht/CFileList.cpp
  71. source/Irrlicht/CFileSystem.cpp
  72. source/Irrlicht/CFPSCounter.cpp
  73. source/Irrlicht/CGeometryCreator.cpp
  74. source/Irrlicht/CGUIButton.cpp
  75. source/Irrlicht/CGUICheckBox.cpp
  76. source/Irrlicht/CGUIColorSelectDialog.cpp
  77. source/Irrlicht/CGUIComboBox.cpp
  78. source/Irrlicht/CGUIContextMenu.cpp
  79. source/Irrlicht/CGUIEditBox.cpp
  80. source/Irrlicht/CGUIEnvironment.cpp
  81. source/Irrlicht/CGUIFileOpenDialog.cpp
  82. source/Irrlicht/CGUIFont.cpp
  83. source/Irrlicht/CGUIImage.cpp
  84. source/Irrlicht/CGUIImageList.cpp
  85. source/Irrlicht/CGUIInOutFader.cpp
  86. source/Irrlicht/CGUIListBox.cpp
  87. source/Irrlicht/CGUIMenu.cpp
  88. source/Irrlicht/CGUIMeshViewer.cpp
  89. source/Irrlicht/CGUIMessageBox.cpp
  90. source/Irrlicht/CGUIModalScreen.cpp
  91. source/Irrlicht/CGUIScrollBar.cpp
  92. source/Irrlicht/CGUISkin.cpp
  93. source/Irrlicht/CGUISpinBox.cpp
  94. source/Irrlicht/CGUISpriteBank.cpp
  95. source/Irrlicht/CGUIStaticText.cpp
  96. source/Irrlicht/CGUITabControl.cpp
  97. source/Irrlicht/CGUITable.cpp
  98. source/Irrlicht/CGUIToolBar.cpp
  99. source/Irrlicht/CGUITreeView.cpp
  100. source/Irrlicht/CGUIWindow.cpp
  101. source/Irrlicht/CImage.cpp
  102. source/Irrlicht/CImageLoaderBMP.cpp
  103. source/Irrlicht/CImageLoaderJPG.cpp
  104. source/Irrlicht/CImageLoaderPNG.cpp
  105. source/Irrlicht/CImageLoaderSVG.cpp
  106. source/Irrlicht/CImageWriterBMP.cpp
  107. source/Irrlicht/CImageWriterJPG.cpp
  108. source/Irrlicht/CImageWriterPNG.cpp
  109. source/Irrlicht/CIrrDeviceSDL.cpp
  110. source/Irrlicht/CIrrDeviceServer.cpp
  111. source/Irrlicht/CIrrDeviceStub.cpp
  112. source/Irrlicht/CLightSceneNode.cpp
  113. source/Irrlicht/CLimitReadFile.cpp
  114. source/Irrlicht/CLogger.cpp
  115. source/Irrlicht/CMemoryFile.cpp
  116. source/Irrlicht/CMeshCache.cpp
  117. source/Irrlicht/CMeshManipulator.cpp
  118. source/Irrlicht/CMeshSceneNode.cpp
  119. source/Irrlicht/CMetaTriangleSelector.cpp
  120. source/Irrlicht/CMountPointReader.cpp
  121. source/Irrlicht/CNullDriver.cpp
  122. source/Irrlicht/COctreeSceneNode.cpp
  123. source/Irrlicht/COctreeTriangleSelector.cpp
  124. source/Irrlicht/COGLES2Driver.cpp
  125. source/Irrlicht/COGLES2ExtensionHandler.cpp
  126. source/Irrlicht/COGLES2FixedPipelineRenderer.cpp
  127. source/Irrlicht/COGLES2MaterialRenderer.cpp
  128. source/Irrlicht/COGLES2NormalMapRenderer.cpp
  129. source/Irrlicht/COGLES2ParallaxMapRenderer.cpp
  130. source/Irrlicht/COGLES2Renderer2D.cpp
  131. source/Irrlicht/COGLES2Texture.cpp
  132. source/Irrlicht/COpenGLDriver.cpp
  133. source/Irrlicht/COpenGLExtensionHandler.cpp
  134. source/Irrlicht/COpenGLParallaxMapRenderer.cpp
  135. source/Irrlicht/COpenGLShaderMaterialRenderer.cpp
  136. source/Irrlicht/COpenGLSLMaterialRenderer.cpp
  137. source/Irrlicht/COpenGLTexture.cpp
  138. source/Irrlicht/COSOperator.cpp
  139. source/Irrlicht/CParticleAnimatedMeshSceneNodeEmitter.cpp
  140. source/Irrlicht/CParticleAttractionAffector.cpp
  141. source/Irrlicht/CParticleBoxEmitter.cpp
  142. source/Irrlicht/CParticleCylinderEmitter.cpp
  143. source/Irrlicht/CParticleFadeOutAffector.cpp
  144. source/Irrlicht/CParticleGravityAffector.cpp
  145. source/Irrlicht/CParticleMeshEmitter.cpp
  146. source/Irrlicht/CParticlePointEmitter.cpp
  147. source/Irrlicht/CParticleRingEmitter.cpp
  148. source/Irrlicht/CParticleRotationAffector.cpp
  149. source/Irrlicht/CParticleScaleAffector.cpp
  150. source/Irrlicht/CParticleSphereEmitter.cpp
  151. source/Irrlicht/CParticleSystemSceneNode.cpp
  152. source/Irrlicht/CReadFile.cpp
  153. source/Irrlicht/CSceneCollisionManager.cpp
  154. source/Irrlicht/CSceneManager.cpp
  155. source/Irrlicht/CSceneNodeAnimatorCameraFPS.cpp
  156. source/Irrlicht/CSceneNodeAnimatorCameraMaya.cpp
  157. source/Irrlicht/CSceneNodeAnimatorCollisionResponse.cpp
  158. source/Irrlicht/CSceneNodeAnimatorDelete.cpp
  159. source/Irrlicht/CSceneNodeAnimatorFlyCircle.cpp
  160. source/Irrlicht/CSceneNodeAnimatorFlyStraight.cpp
  161. source/Irrlicht/CSceneNodeAnimatorFollowSpline.cpp
  162. source/Irrlicht/CSceneNodeAnimatorRotation.cpp
  163. source/Irrlicht/CSceneNodeAnimatorTexture.cpp
  164. source/Irrlicht/CSkinnedMesh.cpp
  165. source/Irrlicht/CSkyBoxSceneNode.cpp
  166. source/Irrlicht/CSkyDomeSceneNode.cpp
  167. source/Irrlicht/CSphereSceneNode.cpp
  168. source/Irrlicht/CTarReader.cpp
  169. source/Irrlicht/CTerrainSceneNode.cpp
  170. source/Irrlicht/CTerrainTriangleSelector.cpp
  171. source/Irrlicht/CTextSceneNode.cpp
  172. source/Irrlicht/CTriangleBBSelector.cpp
  173. source/Irrlicht/CTriangleSelector.cpp
  174. source/Irrlicht/CVideoModeList.cpp
  175. source/Irrlicht/CWaterSurfaceSceneNode.cpp
  176. source/Irrlicht/CWriteFile.cpp
  177. source/Irrlicht/CXMLReader.cpp
  178. source/Irrlicht/CXMLWriter.cpp
  179. source/Irrlicht/CZBuffer.cpp
  180. source/Irrlicht/CZipReader.cpp
  181. source/Irrlicht/Irrlicht.cpp
  182. source/Irrlicht/irrXML.cpp
  183. source/Irrlicht/os.cpp
  184. source/Irrlicht/COpenGLNormalMapRenderer.cpp
  185. source/Irrlicht/CD3D9Driver.cpp
  186. source/Irrlicht/CD3D9Driver.h
  187. source/Irrlicht/CD3D9HLSLMaterialRenderer.cpp
  188. source/Irrlicht/CD3D9HLSLMaterialRenderer.h
  189. source/Irrlicht/CD3D9MaterialRenderer.h
  190. source/Irrlicht/CD3D9NormalMapRenderer.cpp
  191. source/Irrlicht/CD3D9NormalMapRenderer.h
  192. source/Irrlicht/CD3D9ParallaxMapRenderer.cpp
  193. source/Irrlicht/CD3D9ParallaxMapRenderer.h
  194. source/Irrlicht/CD3D9ShaderMaterialRenderer.cpp
  195. source/Irrlicht/CD3D9ShaderMaterialRenderer.h
  196. source/Irrlicht/CD3D9Texture.cpp
  197. source/Irrlicht/CD3D9Texture.h
  198. source/Irrlicht/CAnimatedMeshSceneNode.h
  199. source/Irrlicht/CAttributeImpl.h
  200. source/Irrlicht/CAttributes.h
  201. source/Irrlicht/CBillboardSceneNode.h
  202. source/Irrlicht/CBlit.h
  203. source/Irrlicht/CBoneSceneNode.h
  204. source/Irrlicht/CCameraSceneNode.h
  205. source/Irrlicht/CColorConverter.h
  206. source/Irrlicht/CCubeSceneNode.h
  207. source/Irrlicht/CDefaultGUIElementFactory.h
  208. source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h
  209. source/Irrlicht/CDefaultSceneNodeFactory.h
  210. source/Irrlicht/CDummyTransformationSceneNode.h
  211. source/Irrlicht/CEmptySceneNode.h
  212. source/Irrlicht/CFileList.h
  213. source/Irrlicht/CFileSystem.h
  214. source/Irrlicht/CFPSCounter.h
  215. source/Irrlicht/CGeometryCreator.h
  216. source/Irrlicht/CGUIButton.h
  217. source/Irrlicht/CGUICheckBox.h
  218. source/Irrlicht/CGUIColorSelectDialog.h
  219. source/Irrlicht/CGUIComboBox.h
  220. source/Irrlicht/CGUIContextMenu.h
  221. source/Irrlicht/CGUIEditBox.h
  222. source/Irrlicht/CGUIEnvironment.h
  223. source/Irrlicht/CGUIFileOpenDialog.h
  224. source/Irrlicht/CGUIFont.h
  225. source/Irrlicht/CGUIImage.h
  226. source/Irrlicht/CGUIImageList.h
  227. source/Irrlicht/CGUIInOutFader.h
  228. source/Irrlicht/CGUIListBox.h
  229. source/Irrlicht/CGUIMenu.h
  230. source/Irrlicht/CGUIMeshViewer.h
  231. source/Irrlicht/CGUIMessageBox.h
  232. source/Irrlicht/CGUIModalScreen.h
  233. source/Irrlicht/CGUIScrollBar.h
  234. source/Irrlicht/CGUISkin.h
  235. source/Irrlicht/CGUISpinBox.h
  236. source/Irrlicht/CGUISpriteBank.h
  237. source/Irrlicht/CGUIStaticText.h
  238. source/Irrlicht/CGUITabControl.h
  239. source/Irrlicht/CGUITable.h
  240. source/Irrlicht/CGUIToolBar.h
  241. source/Irrlicht/CGUITreeView.h
  242. source/Irrlicht/CGUIWindow.h
  243. source/Irrlicht/CImage.h
  244. source/Irrlicht/CImageLoaderBMP.h
  245. source/Irrlicht/CImageLoaderJPG.h
  246. source/Irrlicht/CImageLoaderPNG.h
  247. source/Irrlicht/CImageLoaderSVG.h
  248. source/Irrlicht/CImageWriterBMP.h
  249. source/Irrlicht/CImageWriterJPG.h
  250. source/Irrlicht/CImageWriterPNG.h
  251. source/Irrlicht/CIrrDeviceSDL.h
  252. source/Irrlicht/CIrrDeviceServer.h
  253. source/Irrlicht/CIrrDeviceStub.h
  254. source/Irrlicht/CLightSceneNode.h
  255. source/Irrlicht/CLimitReadFile.h
  256. source/Irrlicht/CLogger.h
  257. source/Irrlicht/CMemoryFile.h
  258. source/Irrlicht/CMeshCache.h
  259. source/Irrlicht/CMeshManipulator.h
  260. source/Irrlicht/CMeshSceneNode.h
  261. source/Irrlicht/CMetaTriangleSelector.h
  262. source/Irrlicht/CMountPointReader.h
  263. source/Irrlicht/CNullDriver.h
  264. source/Irrlicht/COctreeSceneNode.h
  265. source/Irrlicht/COctreeTriangleSelector.h
  266. source/Irrlicht/COGLES2Driver.h
  267. source/Irrlicht/COGLES2ExtensionHandler.h
  268. source/Irrlicht/COGLES2FixedPipelineRenderer.h
  269. source/Irrlicht/COGLES2MaterialRenderer.h
  270. source/Irrlicht/COGLES2NormalMapRenderer.h
  271. source/Irrlicht/COGLES2ParallaxMapRenderer.h
  272. source/Irrlicht/COGLES2Renderer2D.h
  273. source/Irrlicht/COGLES2Texture.h
  274. source/Irrlicht/COpenGLDriver.h
  275. source/Irrlicht/COpenGLExtensionHandler.h
  276. source/Irrlicht/COpenGLMaterialRenderer.h
  277. source/Irrlicht/COpenGLParallaxMapRenderer.h
  278. source/Irrlicht/COpenGLShaderMaterialRenderer.h
  279. source/Irrlicht/COpenGLSLMaterialRenderer.h
  280. source/Irrlicht/COpenGLTexture.h
  281. source/Irrlicht/COSOperator.h
  282. source/Irrlicht/CParticleAnimatedMeshSceneNodeEmitter.h
  283. source/Irrlicht/CParticleAttractionAffector.h
  284. source/Irrlicht/CParticleBoxEmitter.h
  285. source/Irrlicht/CParticleCylinderEmitter.h
  286. source/Irrlicht/CParticleFadeOutAffector.h
  287. source/Irrlicht/CParticleGravityAffector.h
  288. source/Irrlicht/CParticleMeshEmitter.h
  289. source/Irrlicht/CParticlePointEmitter.h
  290. source/Irrlicht/CParticleRingEmitter.h
  291. source/Irrlicht/CParticleRotationAffector.h
  292. source/Irrlicht/CParticleScaleAffector.h
  293. source/Irrlicht/CParticleSphereEmitter.h
  294. source/Irrlicht/CParticleSystemSceneNode.h
  295. source/Irrlicht/CReadFile.h
  296. source/Irrlicht/CSceneCollisionManager.h
  297. source/Irrlicht/CSceneManager.h
  298. source/Irrlicht/CSceneNodeAnimatorCameraFPS.h
  299. source/Irrlicht/CSceneNodeAnimatorCameraMaya.h
  300. source/Irrlicht/CSceneNodeAnimatorCollisionResponse.h
  301. source/Irrlicht/CSceneNodeAnimatorDelete.h
  302. source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
  303. source/Irrlicht/CSceneNodeAnimatorFlyStraight.h
  304. source/Irrlicht/CSceneNodeAnimatorFollowSpline.h
  305. source/Irrlicht/CSceneNodeAnimatorRotation.h
  306. source/Irrlicht/CSceneNodeAnimatorTexture.h
  307. source/Irrlicht/CSkinnedMesh.h
  308. source/Irrlicht/CSkyBoxSceneNode.h
  309. source/Irrlicht/CSkyDomeSceneNode.h
  310. source/Irrlicht/CSphereSceneNode.h
  311. source/Irrlicht/CTarReader.h
  312. source/Irrlicht/CTerrainSceneNode.h
  313. source/Irrlicht/CTerrainTriangleSelector.h
  314. source/Irrlicht/CTextSceneNode.h
  315. source/Irrlicht/CTimer.h
  316. source/Irrlicht/CTriangleBBSelector.h
  317. source/Irrlicht/CTriangleSelector.h
  318. source/Irrlicht/CVideoModeList.h
  319. source/Irrlicht/CWaterSurfaceSceneNode.h
  320. source/Irrlicht/CWriteFile.h
  321. source/Irrlicht/CXMLReader.h
  322. source/Irrlicht/CXMLReaderImpl.h
  323. source/Irrlicht/CXMLWriter.h
  324. source/Irrlicht/CZBuffer.h
  325. source/Irrlicht/CZipReader.h
  326. source/Irrlicht/dmfsupport.h
  327. source/Irrlicht/gles2-ext.h
  328. source/Irrlicht/glext.h
  329. source/Irrlicht/glxext.h
  330. source/Irrlicht/IAttribute.h
  331. source/Irrlicht/IImagePresenter.h
  332. source/Irrlicht/ISceneNodeAnimatorFinishing.h
  333. source/Irrlicht/ITriangleRenderer.h
  334. source/Irrlicht/IZBuffer.h
  335. source/Irrlicht/MacOSX/AppDelegate.h
  336. source/Irrlicht/MacOSX/CIrrDeviceMacOSX.h
  337. source/Irrlicht/MacOSX/OSXClipboard.h
  338. source/Irrlicht/Octree.h
  339. source/Irrlicht/os.h
  340. source/Irrlicht/resource.h
  341. source/Irrlicht/S2DVertex.h
  342. source/Irrlicht/S4DVertex.h
  343. source/Irrlicht/SoftwareDriver2_compile_config.h
  344. source/Irrlicht/SoftwareDriver2_helper.h
  345. source/Irrlicht/wglext.h
  346. source/Irrlicht/COpenGLNormalMapRenderer.h
  347. include/aabbox3d.h
  348. include/CDynamicMeshBuffer.h
  349. include/CIndexBuffer.h
  350. include/CMeshBuffer.h
  351. include/coreutil.h
  352. include/CVertexBuffer.h
  353. include/dimension2d.h
  354. include/driverChoice.h
  355. include/EAttributes.h
  356. include/ECullingTypes.h
  357. include/EDebugSceneTypes.h
  358. include/EDeviceTypes.h
  359. include/EDriverFeatures.h
  360. include/EDriverTypes.h
  361. include/EGUIAlignment.h
  362. include/EGUIElementTypes.h
  363. include/EHardwareBufferFlags.h
  364. include/EMaterialFlags.h
  365. include/EMaterialTypes.h
  366. include/EMeshWriterEnums.h
  367. include/EMessageBoxFlags.h
  368. include/EPrimitiveTypes.h
  369. include/ESceneNodeAnimatorTypes.h
  370. include/ESceneNodeTypes.h
  371. include/EShaderTypes.h
  372. include/ETerrainElements.h
  373. include/EVertexAttributes.h
  374. include/fast_atof.h
  375. include/heapsort.h
  376. include/IAnimatedMesh.h
  377. include/IAnimatedMeshSceneNode.h
  378. include/IAttributeExchangingObject.h
  379. include/IAttributes.h
  380. include/IBillboardSceneNode.h
  381. include/IBillboardTextSceneNode.h
  382. include/IBoneSceneNode.h
  383. include/ICameraSceneNode.h
  384. include/ICursorControl.h
  385. include/IDummyTransformationSceneNode.h
  386. include/IDynamicMeshBuffer.h
  387. include/IEventReceiver.h
  388. include/IFileArchive.h
  389. include/IFileList.h
  390. include/IFileSystem.h
  391. include/IGeometryCreator.h
  392. include/IGPUProgrammingServices.h
  393. include/IGUIButton.h
  394. include/IGUICheckBox.h
  395. include/IGUIColorSelectDialog.h
  396. include/IGUIComboBox.h
  397. include/IGUIContextMenu.h
  398. include/IGUIEditBox.h
  399. include/IGUIElementFactory.h
  400. include/IGUIElement.h
  401. include/IGUIEnvironment.h
  402. include/IGUIFileOpenDialog.h
  403. include/IGUIFontBitmap.h
  404. include/IGUIFont.h
  405. include/IGUIImage.h
  406. include/IGUIImageList.h
  407. include/IGUIInOutFader.h
  408. include/IGUIListBox.h
  409. include/IGUIMeshViewer.h
  410. include/IGUIScrollBar.h
  411. include/IGUISkin.h
  412. include/IGUISpinBox.h
  413. include/IGUISpriteBank.h
  414. include/IGUIStaticText.h
  415. include/IGUITabControl.h
  416. include/IGUITable.h
  417. include/IGUIToolbar.h
  418. include/IGUITreeView.h
  419. include/IGUIWindow.h
  420. include/IImage.h
  421. include/IImageLoader.h
  422. include/IImageWriter.h
  423. include/IIndexBuffer.h
  424. include/ILightManager.h
  425. include/ILightSceneNode.h
  426. include/ILogger.h
  427. include/IMaterialRenderer.h
  428. include/IMaterialRendererServices.h
  429. include/IMeshBuffer.h
  430. include/IMeshCache.h
  431. include/IMesh.h
  432. include/IMeshLoader.h
  433. include/IMeshManipulator.h
  434. include/IMeshSceneNode.h
  435. include/IMeshWriter.h
  436. include/IMetaTriangleSelector.h
  437. include/IOSOperator.h
  438. include/IParticleAffector.h
  439. include/IParticleAnimatedMeshSceneNodeEmitter.h
  440. include/IParticleAttractionAffector.h
  441. include/IParticleBoxEmitter.h
  442. include/IParticleCylinderEmitter.h
  443. include/IParticleEmitter.h
  444. include/IParticleFadeOutAffector.h
  445. include/IParticleGravityAffector.h
  446. include/IParticleMeshEmitter.h
  447. include/IParticleRingEmitter.h
  448. include/IParticleRotationAffector.h
  449. include/IParticleSphereEmitter.h
  450. include/IParticleSystemSceneNode.h
  451. include/IRandomizer.h
  452. include/IReadFile.h
  453. include/IReferenceCounted.h
  454. include/irrAllocator.h
  455. include/irrArray.h
  456. include/IrrCompileConfig.h
  457. include/IrrlichtDevice.h
  458. include/irrlicht.h
  459. include/irrList.h
  460. include/irrMap.h
  461. include/irrMath.h
  462. include/irrpack.h
  463. include/irrString.h
  464. include/irrTypes.h
  465. include/irrunpack.h
  466. include/irrXML.h
  467. include/ISceneCollisionManager.h
  468. include/ISceneLoader.h
  469. include/ISceneManager.h
  470. include/ISceneNodeAnimatorCameraFPS.h
  471. include/ISceneNodeAnimatorCameraMaya.h
  472. include/ISceneNodeAnimatorCollisionResponse.h
  473. include/ISceneNodeAnimatorFactory.h
  474. include/ISceneNodeAnimator.h
  475. include/ISceneNodeFactory.h
  476. include/ISceneNode.h
  477. include/ISceneUserDataSerializer.h
  478. include/IShaderConstantSetCallBack.h
  479. include/ISkinnedMesh.h
  480. include/ITerrainSceneNode.h
  481. include/ITextSceneNode.h
  482. include/ITexture.h
  483. include/ITimer.h
  484. include/ITriangleSelector.h
  485. include/IVertexBuffer.h
  486. include/IVideoDriver.h
  487. include/IVideoModeList.h
  488. include/IWriteFile.h
  489. include/IXMLReader.h
  490. include/IXMLWriter.h
  491. include/Keycodes.h
  492. include/line2d.h
  493. include/line3d.h
  494. include/matrix4.h
  495. include/path.h
  496. include/plane3d.h
  497. include/position2d.h
  498. include/quaternion.h
  499. include/rect.h
  500. include/S3DVertex.h
  501. include/SAnimatedMesh.h
  502. include/SceneParameters.h
  503. include/SColor.h
  504. include/SExposedVideoData.h
  505. include/SIrrCreationParameters.h
  506. include/SKeyMap.h
  507. include/SLight.h
  508. include/SMaterial.h
  509. include/SMaterialLayer.h
  510. include/SMeshBuffer.h
  511. include/SMeshBufferLightMap.h
  512. include/SMeshBufferTangents.h
  513. include/SMesh.h
  514. include/SParticle.h
  515. include/SSharedMeshBuffer.h
  516. include/SSkinMeshBuffer.h
  517. include/SVertexIndex.h
  518. include/SVertexManipulator.h
  519. include/SViewFrustum.h
  520. include/triangle3d.h
  521. include/vector2d.h
  522. include/vector3d.h
  523. )
  524. if(DLOPEN_MOLTENVK)
  525. set(IRRLICHT_SOURCES
  526. ${IRRLICHT_SOURCES}
  527. source/Irrlicht/MoltenVK.mm
  528. source/Irrlicht/MoltenVK.h)
  529. set_source_files_properties(source/Irrlicht/MoltenVK.mm PROPERTIES COMPILE_FLAGS "-x objective-c++ -O3 -fno-rtti")
  530. set_source_files_properties(source/Irrlicht/MoltenVK.mm PROPERTIES LANGUAGE C)
  531. endif()
  532. if(IOS)
  533. set(IRRLICHT_SOURCES
  534. ${IRRLICHT_SOURCES}
  535. source/Irrlicht/CIrrDeviceiOS.mm
  536. source/Irrlicht/CIrrDeviceiOS.h)
  537. set_source_files_properties(source/Irrlicht/CIrrDeviceiOS.mm PROPERTIES COMPILE_FLAGS "-x objective-c++ -O3 -fno-rtti")
  538. set_source_files_properties(source/Irrlicht/CIrrDeviceiOS.mm PROPERTIES LANGUAGE C)
  539. endif()
  540. add_library(stkirrlicht STATIC ${IRRLICHT_SOURCES})
  541. target_link_libraries(stkirrlicht ${ZLIB_LIBRARY})
  542. if(NOT SERVER_ONLY)
  543. target_link_libraries(stkirrlicht ${PNG_LIBRARY} ${JPEG_LIBRARY})
  544. endif()
  545. if(WIN32)
  546. target_link_libraries(stkirrlicht)
  547. endif()