2013-03-12 21:31:09 -04:00
|
|
|
# CMakeLists.txt for Irrlicht in STK
|
2015-01-17 14:53:18 -05:00
|
|
|
find_package(PNG REQUIRED)
|
|
|
|
find_package(JPEG REQUIRED)
|
2013-03-12 21:31:09 -04:00
|
|
|
|
2014-02-21 14:09:10 -05:00
|
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/"
|
2015-01-17 14:53:18 -05:00
|
|
|
"${JPEG_INCLUDE_DIR}"
|
|
|
|
"${PNG_INCLUDE_DIRS}"
|
|
|
|
"${ZLIB_INCLUDE_DIR}"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/../zlib/") # For zconf.h on WIN32
|
2013-03-12 21:31:09 -04:00
|
|
|
|
2016-06-23 20:47:13 -04:00
|
|
|
if(NOT USE_GLES2)
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
endif()
|
2014-12-15 01:50:11 -05:00
|
|
|
|
2016-07-05 05:47:55 -04:00
|
|
|
if (UNIX AND NOT APPLE)
|
2016-07-05 04:24:59 -04:00
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
include_directories(${X11_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
if(APPLE)
|
2014-02-21 14:09:10 -05:00
|
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/source/Irrlicht/MacOSX" "${CMAKE_CURRENT_SOURCE_DIR}/source/Irrlicht")
|
2016-07-04 18:25:03 -04:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks")
|
2013-03-13 00:03:26 -04:00
|
|
|
endif()
|
|
|
|
|
2013-07-25 03:19:30 -04:00
|
|
|
add_definitions(-DNDEBUG=1 -DIRRLICHT_EXPORTS=1 -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES)
|
|
|
|
if(MSVC)
|
|
|
|
add_definitions(/D_IRR_STATIC_LIB_)
|
2013-11-14 17:29:12 -05:00
|
|
|
add_definitions(/D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
|
2014-09-03 08:05:34 -04:00
|
|
|
elseif(MINGW)
|
|
|
|
add_definitions(-D_IRR_STATIC_LIB_)
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
|
2013-07-25 03:19:30 -04:00
|
|
|
else()
|
2016-07-03 21:07:53 -04:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing")
|
2015-11-12 16:07:59 -05:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexpensive-optimizations")
|
|
|
|
endif()
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexpensive-optimizations")
|
|
|
|
endif()
|
2013-07-25 03:19:30 -04:00
|
|
|
endif()
|
2013-03-12 21:31:09 -04:00
|
|
|
|
2016-06-23 20:47:13 -04:00
|
|
|
if(USE_GLES2)
|
|
|
|
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_)
|
|
|
|
endif()
|
|
|
|
|
2014-05-12 14:06:44 -04:00
|
|
|
# Xrandr
|
|
|
|
if(UNIX AND USE_XRANDR)
|
|
|
|
add_definitions(-DNO_IRR_LINUX_X11_VIDMODE_)
|
|
|
|
add_definitions(-D_IRR_LINUX_X11_RANDR_)
|
|
|
|
endif()
|
|
|
|
|
2015-03-25 04:16:15 -04:00
|
|
|
if(CYGWIN)
|
|
|
|
add_definitions(-DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
|
|
|
|
endif()
|
|
|
|
|
2016-06-23 20:47:13 -04:00
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
set(IRRLICHT_SOURCES
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CAnimatedMeshSceneNode.cpp
|
|
|
|
source/Irrlicht/CAttributes.cpp
|
|
|
|
source/Irrlicht/CB3DMeshFileLoader.cpp
|
|
|
|
source/Irrlicht/CBillboardSceneNode.cpp
|
|
|
|
source/Irrlicht/CBoneSceneNode.cpp
|
|
|
|
source/Irrlicht/CCameraSceneNode.cpp
|
|
|
|
source/Irrlicht/CColorConverter.cpp
|
|
|
|
source/Irrlicht/CCubeSceneNode.cpp
|
|
|
|
source/Irrlicht/CDefaultGUIElementFactory.cpp
|
|
|
|
source/Irrlicht/CDefaultSceneNodeAnimatorFactory.cpp
|
|
|
|
source/Irrlicht/CDefaultSceneNodeFactory.cpp
|
|
|
|
source/Irrlicht/CDummyTransformationSceneNode.cpp
|
|
|
|
source/Irrlicht/CEmptySceneNode.cpp
|
|
|
|
source/Irrlicht/CFileList.cpp
|
|
|
|
source/Irrlicht/CFileSystem.cpp
|
|
|
|
source/Irrlicht/CFPSCounter.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGeometryCreator.cpp
|
|
|
|
source/Irrlicht/CGUIButton.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUICheckBox.cpp
|
|
|
|
source/Irrlicht/CGUIColorSelectDialog.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUIComboBox.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIContextMenu.cpp
|
|
|
|
source/Irrlicht/CGUIEditBox.cpp
|
|
|
|
source/Irrlicht/CGUIEnvironment.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUIFileOpenDialog.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIFont.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUIImage.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIImageList.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUIInOutFader.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIListBox.cpp
|
|
|
|
source/Irrlicht/CGUIMenu.cpp
|
|
|
|
source/Irrlicht/CGUIMeshViewer.cpp
|
|
|
|
source/Irrlicht/CGUIMessageBox.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUIModalScreen.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIScrollBar.cpp
|
|
|
|
source/Irrlicht/CGUISkin.cpp
|
|
|
|
source/Irrlicht/CGUISpinBox.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUISpriteBank.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIStaticText.cpp
|
|
|
|
source/Irrlicht/CGUITabControl.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUITable.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIToolBar.cpp
|
|
|
|
source/Irrlicht/CGUITreeView.cpp
|
|
|
|
source/Irrlicht/CGUIWindow.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CImage.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CImageLoaderBMP.cpp
|
|
|
|
source/Irrlicht/CImageLoaderJPG.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CImageLoaderPNG.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CImageWriterBMP.cpp
|
|
|
|
source/Irrlicht/CImageWriterJPG.cpp
|
|
|
|
source/Irrlicht/CImageWriterPNG.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceConsole.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceFB.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceLinux.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceSDL.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceStub.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceWin32.cpp
|
|
|
|
source/Irrlicht/CLightSceneNode.cpp
|
|
|
|
source/Irrlicht/CLimitReadFile.cpp
|
|
|
|
source/Irrlicht/CLogger.cpp
|
|
|
|
source/Irrlicht/CMemoryFile.cpp
|
|
|
|
source/Irrlicht/CMeshCache.cpp
|
|
|
|
source/Irrlicht/CMeshManipulator.cpp
|
|
|
|
source/Irrlicht/CMeshSceneNode.cpp
|
|
|
|
source/Irrlicht/CMetaTriangleSelector.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CMountPointReader.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CNullDriver.cpp
|
|
|
|
source/Irrlicht/COctreeSceneNode.cpp
|
|
|
|
source/Irrlicht/COctreeTriangleSelector.cpp
|
|
|
|
source/Irrlicht/COGLES2Driver.cpp
|
|
|
|
source/Irrlicht/COGLES2ExtensionHandler.cpp
|
|
|
|
source/Irrlicht/COGLES2FixedPipelineRenderer.cpp
|
|
|
|
source/Irrlicht/COGLES2MaterialRenderer.cpp
|
|
|
|
source/Irrlicht/COGLES2NormalMapRenderer.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/COGLES2ParallaxMapRenderer.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/COGLES2Renderer2D.cpp
|
|
|
|
source/Irrlicht/COGLES2Texture.cpp
|
|
|
|
source/Irrlicht/COpenGLDriver.cpp
|
|
|
|
source/Irrlicht/COpenGLExtensionHandler.cpp
|
|
|
|
source/Irrlicht/COpenGLParallaxMapRenderer.cpp
|
|
|
|
source/Irrlicht/COpenGLShaderMaterialRenderer.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/COpenGLSLMaterialRenderer.cpp
|
|
|
|
source/Irrlicht/COpenGLTexture.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/COSOperator.cpp
|
|
|
|
source/Irrlicht/CParticleAnimatedMeshSceneNodeEmitter.cpp
|
|
|
|
source/Irrlicht/CParticleAttractionAffector.cpp
|
|
|
|
source/Irrlicht/CParticleBoxEmitter.cpp
|
|
|
|
source/Irrlicht/CParticleCylinderEmitter.cpp
|
|
|
|
source/Irrlicht/CParticleFadeOutAffector.cpp
|
|
|
|
source/Irrlicht/CParticleGravityAffector.cpp
|
|
|
|
source/Irrlicht/CParticleMeshEmitter.cpp
|
|
|
|
source/Irrlicht/CParticlePointEmitter.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CParticleRingEmitter.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CParticleRotationAffector.cpp
|
|
|
|
source/Irrlicht/CParticleScaleAffector.cpp
|
|
|
|
source/Irrlicht/CParticleSphereEmitter.cpp
|
|
|
|
source/Irrlicht/CParticleSystemSceneNode.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CReadFile.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CSceneCollisionManager.cpp
|
|
|
|
source/Irrlicht/CSceneManager.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorCameraFPS.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorCameraMaya.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorCollisionResponse.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorDelete.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyCircle.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyStraight.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFollowSpline.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorRotation.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorTexture.cpp
|
|
|
|
source/Irrlicht/CSkinnedMesh.cpp
|
|
|
|
source/Irrlicht/CSkyBoxSceneNode.cpp
|
|
|
|
source/Irrlicht/CSkyDomeSceneNode.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CSphereSceneNode.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CTarReader.cpp
|
|
|
|
source/Irrlicht/CTerrainSceneNode.cpp
|
|
|
|
source/Irrlicht/CTerrainTriangleSelector.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CTextSceneNode.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CTriangleBBSelector.cpp
|
|
|
|
source/Irrlicht/CTriangleSelector.cpp
|
|
|
|
source/Irrlicht/CVideoModeList.cpp
|
|
|
|
source/Irrlicht/CWaterSurfaceSceneNode.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CWriteFile.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CXMLReader.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CXMLWriter.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CZBuffer.cpp
|
|
|
|
source/Irrlicht/CZipReader.cpp
|
|
|
|
source/Irrlicht/Irrlicht.cpp
|
|
|
|
source/Irrlicht/irrXML.cpp
|
|
|
|
source/Irrlicht/os.cpp
|
|
|
|
source/Irrlicht/BuiltInFont.h
|
|
|
|
source/Irrlicht/CAnimatedMeshSceneNode.h
|
|
|
|
source/Irrlicht/CAttributeImpl.h
|
|
|
|
source/Irrlicht/CAttributes.h
|
|
|
|
source/Irrlicht/CB3DMeshFileLoader.h
|
|
|
|
source/Irrlicht/CBillboardSceneNode.h
|
|
|
|
source/Irrlicht/CBlit.h
|
|
|
|
source/Irrlicht/CBoneSceneNode.h
|
|
|
|
source/Irrlicht/CCameraSceneNode.h
|
|
|
|
source/Irrlicht/CColorConverter.h
|
|
|
|
source/Irrlicht/CCubeSceneNode.h
|
|
|
|
source/Irrlicht/CDefaultGUIElementFactory.h
|
|
|
|
source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h
|
|
|
|
source/Irrlicht/CDefaultSceneNodeFactory.h
|
|
|
|
source/Irrlicht/CDummyTransformationSceneNode.h
|
|
|
|
source/Irrlicht/CEmptySceneNode.h
|
|
|
|
source/Irrlicht/CFileList.h
|
|
|
|
source/Irrlicht/CFileSystem.h
|
|
|
|
source/Irrlicht/CFPSCounter.h
|
|
|
|
source/Irrlicht/CGeometryCreator.h
|
|
|
|
source/Irrlicht/CGUIButton.h
|
|
|
|
source/Irrlicht/CGUICheckBox.h
|
|
|
|
source/Irrlicht/CGUIColorSelectDialog.h
|
|
|
|
source/Irrlicht/CGUIComboBox.h
|
|
|
|
source/Irrlicht/CGUIContextMenu.h
|
|
|
|
source/Irrlicht/CGUIEditBox.h
|
|
|
|
source/Irrlicht/CGUIEnvironment.h
|
|
|
|
source/Irrlicht/CGUIFileOpenDialog.h
|
|
|
|
source/Irrlicht/CGUIFont.h
|
|
|
|
source/Irrlicht/CGUIImage.h
|
|
|
|
source/Irrlicht/CGUIImageList.h
|
|
|
|
source/Irrlicht/CGUIInOutFader.h
|
|
|
|
source/Irrlicht/CGUIListBox.h
|
|
|
|
source/Irrlicht/CGUIMenu.h
|
|
|
|
source/Irrlicht/CGUIMeshViewer.h
|
|
|
|
source/Irrlicht/CGUIMessageBox.h
|
|
|
|
source/Irrlicht/CGUIModalScreen.h
|
|
|
|
source/Irrlicht/CGUIScrollBar.h
|
|
|
|
source/Irrlicht/CGUISkin.h
|
|
|
|
source/Irrlicht/CGUISpinBox.h
|
|
|
|
source/Irrlicht/CGUISpriteBank.h
|
|
|
|
source/Irrlicht/CGUIStaticText.h
|
|
|
|
source/Irrlicht/CGUITabControl.h
|
|
|
|
source/Irrlicht/CGUITable.h
|
|
|
|
source/Irrlicht/CGUIToolBar.h
|
|
|
|
source/Irrlicht/CGUITreeView.h
|
|
|
|
source/Irrlicht/CGUIWindow.h
|
|
|
|
source/Irrlicht/CImage.h
|
|
|
|
source/Irrlicht/CImageLoaderBMP.h
|
|
|
|
source/Irrlicht/CImageLoaderJPG.h
|
|
|
|
source/Irrlicht/CImageLoaderPNG.h
|
|
|
|
source/Irrlicht/CImageWriterBMP.h
|
|
|
|
source/Irrlicht/CImageWriterJPG.h
|
|
|
|
source/Irrlicht/CImageWriterPNG.h
|
|
|
|
source/Irrlicht/CIrrDeviceConsole.h
|
|
|
|
source/Irrlicht/CIrrDeviceFB.h
|
|
|
|
source/Irrlicht/CIrrDeviceLinux.h
|
|
|
|
source/Irrlicht/CIrrDeviceSDL.h
|
|
|
|
source/Irrlicht/CIrrDeviceStub.h
|
|
|
|
source/Irrlicht/CIrrDeviceWin32.h
|
|
|
|
source/Irrlicht/CLightSceneNode.h
|
|
|
|
source/Irrlicht/CLimitReadFile.h
|
|
|
|
source/Irrlicht/CLogger.h
|
|
|
|
source/Irrlicht/CMemoryFile.h
|
|
|
|
source/Irrlicht/CMeshCache.h
|
|
|
|
source/Irrlicht/CMeshManipulator.h
|
|
|
|
source/Irrlicht/CMeshSceneNode.h
|
|
|
|
source/Irrlicht/CMetaTriangleSelector.h
|
|
|
|
source/Irrlicht/CMountPointReader.h
|
|
|
|
source/Irrlicht/CNullDriver.h
|
|
|
|
source/Irrlicht/COctreeSceneNode.h
|
|
|
|
source/Irrlicht/COctreeTriangleSelector.h
|
|
|
|
source/Irrlicht/COGLES2Driver.h
|
|
|
|
source/Irrlicht/COGLES2ExtensionHandler.h
|
|
|
|
source/Irrlicht/COGLES2FixedPipelineRenderer.h
|
|
|
|
source/Irrlicht/COGLES2MaterialRenderer.h
|
|
|
|
source/Irrlicht/COGLES2NormalMapRenderer.h
|
|
|
|
source/Irrlicht/COGLES2ParallaxMapRenderer.h
|
|
|
|
source/Irrlicht/COGLES2Renderer2D.h
|
|
|
|
source/Irrlicht/COGLES2Texture.h
|
|
|
|
source/Irrlicht/COpenGLDriver.h
|
|
|
|
source/Irrlicht/COpenGLExtensionHandler.h
|
|
|
|
source/Irrlicht/COpenGLMaterialRenderer.h
|
|
|
|
source/Irrlicht/COpenGLParallaxMapRenderer.h
|
|
|
|
source/Irrlicht/COpenGLShaderMaterialRenderer.h
|
|
|
|
source/Irrlicht/COpenGLSLMaterialRenderer.h
|
|
|
|
source/Irrlicht/COpenGLTexture.h
|
|
|
|
source/Irrlicht/COSOperator.h
|
|
|
|
source/Irrlicht/CParticleAnimatedMeshSceneNodeEmitter.h
|
|
|
|
source/Irrlicht/CParticleAttractionAffector.h
|
|
|
|
source/Irrlicht/CParticleBoxEmitter.h
|
|
|
|
source/Irrlicht/CParticleCylinderEmitter.h
|
|
|
|
source/Irrlicht/CParticleFadeOutAffector.h
|
|
|
|
source/Irrlicht/CParticleGravityAffector.h
|
|
|
|
source/Irrlicht/CParticleMeshEmitter.h
|
|
|
|
source/Irrlicht/CParticlePointEmitter.h
|
|
|
|
source/Irrlicht/CParticleRingEmitter.h
|
|
|
|
source/Irrlicht/CParticleRotationAffector.h
|
|
|
|
source/Irrlicht/CParticleScaleAffector.h
|
|
|
|
source/Irrlicht/CParticleSphereEmitter.h
|
|
|
|
source/Irrlicht/CParticleSystemSceneNode.h
|
|
|
|
source/Irrlicht/CReadFile.h
|
|
|
|
source/Irrlicht/CSceneCollisionManager.h
|
|
|
|
source/Irrlicht/CSceneManager.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorCameraFPS.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorCameraMaya.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorCollisionResponse.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorDelete.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyStraight.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFollowSpline.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorRotation.h
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorTexture.h
|
|
|
|
source/Irrlicht/CSkinnedMesh.h
|
|
|
|
source/Irrlicht/CSkyBoxSceneNode.h
|
|
|
|
source/Irrlicht/CSkyDomeSceneNode.h
|
|
|
|
source/Irrlicht/CSphereSceneNode.h
|
|
|
|
source/Irrlicht/CTarReader.h
|
|
|
|
source/Irrlicht/CTerrainSceneNode.h
|
|
|
|
source/Irrlicht/CTerrainTriangleSelector.h
|
|
|
|
source/Irrlicht/CTextSceneNode.h
|
|
|
|
source/Irrlicht/CTimer.h
|
|
|
|
source/Irrlicht/CTriangleBBSelector.h
|
|
|
|
source/Irrlicht/CTriangleSelector.h
|
|
|
|
source/Irrlicht/CVideoModeList.h
|
|
|
|
source/Irrlicht/CWaterSurfaceSceneNode.h
|
|
|
|
source/Irrlicht/CWriteFile.h
|
|
|
|
source/Irrlicht/CXMLReader.h
|
|
|
|
source/Irrlicht/CXMLReaderImpl.h
|
|
|
|
source/Irrlicht/CXMLWriter.h
|
|
|
|
source/Irrlicht/CZBuffer.h
|
|
|
|
source/Irrlicht/CZipReader.h
|
|
|
|
source/Irrlicht/dmfsupport.h
|
|
|
|
source/Irrlicht/gles2-ext.h
|
|
|
|
source/Irrlicht/glext.h
|
|
|
|
source/Irrlicht/glxext.h
|
|
|
|
source/Irrlicht/IAttribute.h
|
|
|
|
source/Irrlicht/IImagePresenter.h
|
|
|
|
source/Irrlicht/ISceneNodeAnimatorFinishing.h
|
|
|
|
source/Irrlicht/ITriangleRenderer.h
|
|
|
|
source/Irrlicht/IZBuffer.h
|
|
|
|
source/Irrlicht/MacOSX/AppDelegate.h
|
|
|
|
source/Irrlicht/MacOSX/CIrrDeviceMacOSX.h
|
|
|
|
source/Irrlicht/MacOSX/OSXClipboard.h
|
|
|
|
source/Irrlicht/Octree.h
|
|
|
|
source/Irrlicht/os.h
|
|
|
|
source/Irrlicht/resource.h
|
|
|
|
source/Irrlicht/S2DVertex.h
|
|
|
|
source/Irrlicht/S4DVertex.h
|
|
|
|
source/Irrlicht/SoftwareDriver2_compile_config.h
|
|
|
|
source/Irrlicht/SoftwareDriver2_helper.h
|
|
|
|
source/Irrlicht/wglext.h
|
|
|
|
|
|
|
|
include/aabbox3d.h
|
|
|
|
include/CDynamicMeshBuffer.h
|
|
|
|
include/CIndexBuffer.h
|
|
|
|
include/CMeshBuffer.h
|
|
|
|
include/coreutil.h
|
|
|
|
include/CVertexBuffer.h
|
|
|
|
include/dimension2d.h
|
|
|
|
include/driverChoice.h
|
|
|
|
include/EAttributes.h
|
|
|
|
include/ECullingTypes.h
|
|
|
|
include/EDebugSceneTypes.h
|
|
|
|
include/EDeviceTypes.h
|
|
|
|
include/EDriverFeatures.h
|
|
|
|
include/EDriverTypes.h
|
|
|
|
include/EGUIAlignment.h
|
|
|
|
include/EGUIElementTypes.h
|
|
|
|
include/EHardwareBufferFlags.h
|
|
|
|
include/EMaterialFlags.h
|
|
|
|
include/EMaterialTypes.h
|
|
|
|
include/EMeshWriterEnums.h
|
|
|
|
include/EMessageBoxFlags.h
|
|
|
|
include/EPrimitiveTypes.h
|
|
|
|
include/ESceneNodeAnimatorTypes.h
|
|
|
|
include/ESceneNodeTypes.h
|
|
|
|
include/EShaderTypes.h
|
|
|
|
include/ETerrainElements.h
|
|
|
|
include/EVertexAttributes.h
|
|
|
|
include/fast_atof.h
|
|
|
|
include/heapsort.h
|
|
|
|
include/IAnimatedMesh.h
|
|
|
|
include/IAnimatedMeshSceneNode.h
|
|
|
|
include/IAttributeExchangingObject.h
|
|
|
|
include/IAttributes.h
|
|
|
|
include/IBillboardSceneNode.h
|
|
|
|
include/IBillboardTextSceneNode.h
|
|
|
|
include/IBoneSceneNode.h
|
|
|
|
include/ICameraSceneNode.h
|
|
|
|
include/ICursorControl.h
|
|
|
|
include/IDummyTransformationSceneNode.h
|
|
|
|
include/IDynamicMeshBuffer.h
|
|
|
|
include/IEventReceiver.h
|
|
|
|
include/IFileArchive.h
|
|
|
|
include/IFileList.h
|
|
|
|
include/IFileSystem.h
|
|
|
|
include/IGeometryCreator.h
|
|
|
|
include/IGPUProgrammingServices.h
|
|
|
|
include/IGUIButton.h
|
|
|
|
include/IGUICheckBox.h
|
|
|
|
include/IGUIColorSelectDialog.h
|
|
|
|
include/IGUIComboBox.h
|
|
|
|
include/IGUIContextMenu.h
|
|
|
|
include/IGUIEditBox.h
|
|
|
|
include/IGUIElementFactory.h
|
|
|
|
include/IGUIElement.h
|
|
|
|
include/IGUIEnvironment.h
|
|
|
|
include/IGUIFileOpenDialog.h
|
|
|
|
include/IGUIFontBitmap.h
|
|
|
|
include/IGUIFont.h
|
|
|
|
include/IGUIImage.h
|
|
|
|
include/IGUIImageList.h
|
|
|
|
include/IGUIInOutFader.h
|
|
|
|
include/IGUIListBox.h
|
|
|
|
include/IGUIMeshViewer.h
|
|
|
|
include/IGUIScrollBar.h
|
|
|
|
include/IGUISkin.h
|
|
|
|
include/IGUISpinBox.h
|
|
|
|
include/IGUISpriteBank.h
|
|
|
|
include/IGUIStaticText.h
|
|
|
|
include/IGUITabControl.h
|
|
|
|
include/IGUITable.h
|
|
|
|
include/IGUIToolbar.h
|
|
|
|
include/IGUITreeView.h
|
|
|
|
include/IGUIWindow.h
|
|
|
|
include/IImage.h
|
|
|
|
include/IImageLoader.h
|
|
|
|
include/IImageWriter.h
|
|
|
|
include/IIndexBuffer.h
|
|
|
|
include/ILightManager.h
|
|
|
|
include/ILightSceneNode.h
|
|
|
|
include/ILogger.h
|
|
|
|
include/IMaterialRenderer.h
|
|
|
|
include/IMaterialRendererServices.h
|
|
|
|
include/IMeshBuffer.h
|
|
|
|
include/IMeshCache.h
|
|
|
|
include/IMesh.h
|
|
|
|
include/IMeshLoader.h
|
|
|
|
include/IMeshManipulator.h
|
|
|
|
include/IMeshSceneNode.h
|
|
|
|
include/IMeshWriter.h
|
|
|
|
include/IMetaTriangleSelector.h
|
|
|
|
include/IOSOperator.h
|
|
|
|
include/IParticleAffector.h
|
|
|
|
include/IParticleAnimatedMeshSceneNodeEmitter.h
|
|
|
|
include/IParticleAttractionAffector.h
|
|
|
|
include/IParticleBoxEmitter.h
|
|
|
|
include/IParticleCylinderEmitter.h
|
|
|
|
include/IParticleEmitter.h
|
|
|
|
include/IParticleFadeOutAffector.h
|
|
|
|
include/IParticleGravityAffector.h
|
|
|
|
include/IParticleMeshEmitter.h
|
|
|
|
include/IParticleRingEmitter.h
|
|
|
|
include/IParticleRotationAffector.h
|
|
|
|
include/IParticleSphereEmitter.h
|
|
|
|
include/IParticleSystemSceneNode.h
|
|
|
|
include/IRandomizer.h
|
|
|
|
include/IReadFile.h
|
|
|
|
include/IReferenceCounted.h
|
|
|
|
include/irrAllocator.h
|
|
|
|
include/irrArray.h
|
|
|
|
include/IrrCompileConfig.h
|
|
|
|
include/IrrlichtDevice.h
|
|
|
|
include/irrlicht.h
|
|
|
|
include/irrList.h
|
|
|
|
include/irrMap.h
|
|
|
|
include/irrMath.h
|
|
|
|
include/irrpack.h
|
|
|
|
include/irrString.h
|
|
|
|
include/irrTypes.h
|
|
|
|
include/irrunpack.h
|
|
|
|
include/irrXML.h
|
|
|
|
include/ISceneCollisionManager.h
|
|
|
|
include/ISceneLoader.h
|
|
|
|
include/ISceneManager.h
|
|
|
|
include/ISceneNodeAnimatorCameraFPS.h
|
|
|
|
include/ISceneNodeAnimatorCameraMaya.h
|
|
|
|
include/ISceneNodeAnimatorCollisionResponse.h
|
|
|
|
include/ISceneNodeAnimatorFactory.h
|
|
|
|
include/ISceneNodeAnimator.h
|
|
|
|
include/ISceneNodeFactory.h
|
|
|
|
include/ISceneNode.h
|
|
|
|
include/ISceneUserDataSerializer.h
|
|
|
|
include/IShaderConstantSetCallBack.h
|
|
|
|
include/ISkinnedMesh.h
|
|
|
|
include/ITerrainSceneNode.h
|
|
|
|
include/ITextSceneNode.h
|
|
|
|
include/ITexture.h
|
|
|
|
include/ITimer.h
|
|
|
|
include/ITriangleSelector.h
|
|
|
|
include/IVertexBuffer.h
|
|
|
|
include/IVideoDriver.h
|
|
|
|
include/IVideoModeList.h
|
|
|
|
include/IWriteFile.h
|
|
|
|
include/IXMLReader.h
|
|
|
|
include/IXMLWriter.h
|
|
|
|
include/Keycodes.h
|
|
|
|
include/line2d.h
|
|
|
|
include/line3d.h
|
|
|
|
include/matrix4.h
|
|
|
|
include/path.h
|
|
|
|
include/plane3d.h
|
|
|
|
include/position2d.h
|
|
|
|
include/quaternion.h
|
|
|
|
include/rect.h
|
|
|
|
include/S3DVertex.h
|
|
|
|
include/SAnimatedMesh.h
|
|
|
|
include/SceneParameters.h
|
|
|
|
include/SColor.h
|
|
|
|
include/SExposedVideoData.h
|
|
|
|
include/SIrrCreationParameters.h
|
|
|
|
include/SKeyMap.h
|
|
|
|
include/SLight.h
|
|
|
|
include/SMaterial.h
|
|
|
|
include/SMaterialLayer.h
|
|
|
|
include/SMeshBuffer.h
|
|
|
|
include/SMeshBufferLightMap.h
|
|
|
|
include/SMeshBufferTangents.h
|
|
|
|
include/SMesh.h
|
|
|
|
include/SParticle.h
|
|
|
|
include/SSharedMeshBuffer.h
|
|
|
|
include/SSkinMeshBuffer.h
|
|
|
|
include/SVertexIndex.h
|
|
|
|
include/SVertexManipulator.h
|
|
|
|
include/SViewFrustum.h
|
|
|
|
include/triangle3d.h
|
|
|
|
include/utfwrapping.h
|
|
|
|
include/vector2d.h
|
|
|
|
include/vector3d.h
|
2013-03-12 21:31:09 -04:00
|
|
|
)
|
2013-03-13 00:03:26 -04:00
|
|
|
|
2016-07-04 18:25:03 -04:00
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
if(APPLE)
|
|
|
|
set(IRRLICHT_SOURCES
|
|
|
|
${IRRLICHT_SOURCES}
|
|
|
|
source/Irrlicht/MacOSX/AppDelegate.mm
|
|
|
|
source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
|
|
|
|
source/Irrlicht/MacOSX/OSXClipboard.mm)
|
2014-09-03 08:05:34 -04:00
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
#list(APPEND CMAKE_C_SOURCE_FILE_EXTENSIONS mm)
|
|
|
|
#set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS cpp)
|
2014-09-03 08:05:34 -04:00
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
set_source_files_properties(source/Irrlicht/MacOSX/AppDelegate.mm PROPERTIES COMPILE_FLAGS "-x objective-c++ -O3 -fno-rtti")
|
|
|
|
set_source_files_properties(source/Irrlicht/MacOSX/AppDelegate.mm PROPERTIES LANGUAGE C)
|
2014-09-03 08:05:34 -04:00
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
set_source_files_properties(source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm PROPERTIES COMPILE_FLAGS "-x objective-c++ -O3 -fno-rtti")
|
|
|
|
set_source_files_properties(source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm PROPERTIES LANGUAGE C)
|
2014-09-03 08:05:34 -04:00
|
|
|
|
2013-03-13 00:03:26 -04:00
|
|
|
set_source_files_properties(source/Irrlicht/MacOSX/OSXClipboard.mm PROPERTIES COMPILE_FLAGS "-x objective-c++ -O3 -fno-rtti")
|
|
|
|
set_source_files_properties(source/Irrlicht/MacOSX/OSXClipboard.mm PROPERTIES LANGUAGE C)
|
|
|
|
endif()
|
|
|
|
|
2015-10-17 10:02:35 -04:00
|
|
|
add_library(stkirrlicht STATIC ${IRRLICHT_SOURCES})
|
2015-01-18 20:22:40 -05:00
|
|
|
target_link_libraries(stkirrlicht ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})
|
2015-01-17 14:53:18 -05:00
|
|
|
|
2015-12-14 04:11:40 -05:00
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(stkirrlicht imm32)
|
|
|
|
endif()
|