CMakeLists.txt 18 KB

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