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}"
|
2017-07-10 15:14:28 -04:00
|
|
|
"${ZLIB_INCLUDE_DIR}")
|
|
|
|
|
|
|
|
if(MSVC OR APPLE)
|
|
|
|
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../zlib/" # For zconf.h on WIN32
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/../libpng/")
|
|
|
|
endif()
|
|
|
|
|
2016-11-11 01:21:59 -05:00
|
|
|
if (SERVER_ONLY)
|
|
|
|
add_definitions(-DNO_IRR_COMPILE_WITH_OPENGL_)
|
|
|
|
add_definitions(-DNO_IRR_COMPILE_WITH_X11_)
|
2017-05-18 14:48:42 -04:00
|
|
|
add_definitions(-DNO_IRR_COMPILE_WITH_WAYLAND_DEVICE_)
|
2016-11-11 01:21:59 -05:00
|
|
|
else()
|
|
|
|
if(NOT USE_GLES2)
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
endif()
|
2016-06-23 20:47:13 -04:00
|
|
|
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()
|
2014-12-15 01:50:11 -05:00
|
|
|
|
2017-05-06 15:53:32 -04:00
|
|
|
if(ENABLE_WAYLAND_DEVICE)
|
2017-05-18 14:48:42 -04:00
|
|
|
add_definitions(-D_IRR_COMPILE_WITH_WAYLAND_DEVICE_)
|
2017-05-06 15:53:32 -04:00
|
|
|
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)
|
2016-12-11 00:21:17 -05:00
|
|
|
|
|
|
|
if(UNIX OR MINGW)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
|
|
|
|
endif()
|
|
|
|
|
2013-07-25 03:19:30 -04:00
|
|
|
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)
|
2017-07-04 17:32:57 -04:00
|
|
|
add_definitions(-D_IRR_COMPILE_WITH_OGLES2_ -DNO_IRR_COMPILE_WITH_OPENGL_)
|
2014-05-12 14:06:44 -04:00
|
|
|
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/CBillboardSceneNode.cpp
|
|
|
|
source/Irrlicht/CBoneSceneNode.cpp
|
|
|
|
source/Irrlicht/CCameraSceneNode.cpp
|
2017-04-05 14:28:38 -04:00
|
|
|
source/Irrlicht/CContextEGL.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CColorConverter.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CCubeSceneNode.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CDefaultGUIElementFactory.cpp
|
|
|
|
source/Irrlicht/CDefaultSceneNodeAnimatorFactory.cpp
|
|
|
|
source/Irrlicht/CDefaultSceneNodeFactory.cpp
|
|
|
|
source/Irrlicht/CDummyTransformationSceneNode.cpp
|
|
|
|
source/Irrlicht/CEmptySceneNode.cpp
|
|
|
|
source/Irrlicht/CFileList.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIContextMenu.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIEditBox.cpp
|
|
|
|
source/Irrlicht/CGUIEnvironment.cpp
|
2013-03-12 21:31:09 -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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIMenu.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUIMeshViewer.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIMessageBox.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUIModalScreen.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIScrollBar.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CGUISkin.cpp
|
|
|
|
source/Irrlicht/CGUISpinBox.cpp
|
2016-06-23 20:47:13 -04:00
|
|
|
source/Irrlicht/CGUISpriteBank.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIStaticText.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
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
|
2017-01-27 16:43:49 -05:00
|
|
|
source/Irrlicht/CIrrDeviceAndroid.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CIrrDeviceConsole.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CIrrDeviceFB.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CIrrDeviceLinux.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceSDL.cpp
|
|
|
|
source/Irrlicht/CIrrDeviceStub.cpp
|
2017-04-22 15:55:24 -04:00
|
|
|
source/Irrlicht/CIrrDeviceWayland.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CIrrDeviceWin32.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CLightSceneNode.cpp
|
|
|
|
source/Irrlicht/CLimitReadFile.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CLogger.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CMemoryFile.cpp
|
|
|
|
source/Irrlicht/CMeshCache.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CMeshManipulator.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/COctreeTriangleSelector.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/COpenGLExtensionHandler.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/COpenGLParallaxMapRenderer.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CParticleRingEmitter.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CParticleRotationAffector.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CParticleScaleAffector.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CSceneNodeAnimatorDelete.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyCircle.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyStraight.cpp
|
|
|
|
source/Irrlicht/CSceneNodeAnimatorFollowSpline.cpp
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CSceneNodeAnimatorRotation.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2016-11-19 01:21:56 -05:00
|
|
|
source/Irrlicht/COpenGLNormalMapRenderer.cpp
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CAnimatedMeshSceneNode.h
|
|
|
|
source/Irrlicht/CAttributeImpl.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CAttributes.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CBillboardSceneNode.h
|
|
|
|
source/Irrlicht/CBlit.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CBoneSceneNode.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CCameraSceneNode.h
|
2017-04-05 14:28:38 -04:00
|
|
|
source/Irrlicht/CContextEGL.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CColorConverter.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CCubeSceneNode.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUICheckBox.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIImage.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CGUIStaticText.h
|
|
|
|
source/Irrlicht/CGUITabControl.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2017-01-27 16:43:49 -05:00
|
|
|
source/Irrlicht/CIrrDeviceAndroid.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CIrrDeviceConsole.h
|
|
|
|
source/Irrlicht/CIrrDeviceFB.h
|
|
|
|
source/Irrlicht/CIrrDeviceLinux.h
|
|
|
|
source/Irrlicht/CIrrDeviceSDL.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CIrrDeviceStub.h
|
2017-04-22 15:55:24 -04:00
|
|
|
source/Irrlicht/CIrrDeviceWayland.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/COctreeSceneNode.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/COSOperator.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CParticleSphereEmitter.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CSceneNodeAnimatorFlyStraight.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CTriangleSelector.h
|
|
|
|
source/Irrlicht/CVideoModeList.h
|
|
|
|
source/Irrlicht/CWaterSurfaceSceneNode.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CWriteFile.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CXMLReader.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/CXMLReaderImpl.h
|
|
|
|
source/Irrlicht/CXMLWriter.h
|
|
|
|
source/Irrlicht/CZBuffer.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/CZipReader.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/dmfsupport.h
|
|
|
|
source/Irrlicht/gles2-ext.h
|
|
|
|
source/Irrlicht/glext.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/glxext.h
|
2016-07-04 18:25:03 -04:00
|
|
|
source/Irrlicht/IAttribute.h
|
|
|
|
source/Irrlicht/IImagePresenter.h
|
|
|
|
source/Irrlicht/ISceneNodeAnimatorFinishing.h
|
2013-03-12 21:31:09 -04:00
|
|
|
source/Irrlicht/ITriangleRenderer.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2016-11-19 01:21:56 -05:00
|
|
|
source/Irrlicht/COpenGLNormalMapRenderer.h
|
2013-03-12 21:31:09 -04:00
|
|
|
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
include/ESceneNodeAnimatorTypes.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IEventReceiver.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IFileArchive.h
|
|
|
|
include/IFileList.h
|
|
|
|
include/IFileSystem.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IGeometryCreator.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IGPUProgrammingServices.h
|
|
|
|
include/IGUIButton.h
|
|
|
|
include/IGUICheckBox.h
|
|
|
|
include/IGUIColorSelectDialog.h
|
|
|
|
include/IGUIComboBox.h
|
|
|
|
include/IGUIContextMenu.h
|
|
|
|
include/IGUIEditBox.h
|
|
|
|
include/IGUIElementFactory.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IGUIElement.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IGUIEnvironment.h
|
|
|
|
include/IGUIFileOpenDialog.h
|
|
|
|
include/IGUIFontBitmap.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IGUIFont.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IGUIImage.h
|
|
|
|
include/IGUIImageList.h
|
|
|
|
include/IGUIInOutFader.h
|
|
|
|
include/IGUIListBox.h
|
|
|
|
include/IGUIMeshViewer.h
|
|
|
|
include/IGUIScrollBar.h
|
|
|
|
include/IGUISkin.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IGUISpinBox.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IGUISpriteBank.h
|
|
|
|
include/IGUIStaticText.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IGUITabControl.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IMesh.h
|
|
|
|
include/IMeshLoader.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IMeshManipulator.h
|
|
|
|
include/IMeshSceneNode.h
|
|
|
|
include/IMeshWriter.h
|
|
|
|
include/IMetaTriangleSelector.h
|
|
|
|
include/IOSOperator.h
|
|
|
|
include/IParticleAffector.h
|
|
|
|
include/IParticleAnimatedMeshSceneNodeEmitter.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IParticleAttractionAffector.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
2013-03-12 21:31:09 -04:00
|
|
|
include/irrAllocator.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/irrArray.h
|
|
|
|
include/IrrCompileConfig.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/IrrlichtDevice.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/irrlicht.h
|
|
|
|
include/irrList.h
|
|
|
|
include/irrMap.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/irrMath.h
|
|
|
|
include/irrpack.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/irrString.h
|
|
|
|
include/irrTypes.h
|
|
|
|
include/irrunpack.h
|
|
|
|
include/irrXML.h
|
|
|
|
include/ISceneCollisionManager.h
|
|
|
|
include/ISceneLoader.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/ISceneManager.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/ISceneNodeAnimatorCameraFPS.h
|
|
|
|
include/ISceneNodeAnimatorCameraMaya.h
|
|
|
|
include/ISceneNodeAnimatorCollisionResponse.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/ISceneNodeAnimatorFactory.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/ISceneNodeAnimator.h
|
|
|
|
include/ISceneNodeFactory.h
|
|
|
|
include/ISceneNode.h
|
|
|
|
include/ISceneUserDataSerializer.h
|
|
|
|
include/IShaderConstantSetCallBack.h
|
|
|
|
include/ISkinnedMesh.h
|
|
|
|
include/ITerrainSceneNode.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/ITextSceneNode.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/ITexture.h
|
|
|
|
include/ITimer.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/ITriangleSelector.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/IVertexBuffer.h
|
|
|
|
include/IVideoDriver.h
|
|
|
|
include/IVideoModeList.h
|
|
|
|
include/IWriteFile.h
|
|
|
|
include/IXMLReader.h
|
|
|
|
include/IXMLWriter.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/Keycodes.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/line2d.h
|
|
|
|
include/line3d.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/matrix4.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/path.h
|
|
|
|
include/plane3d.h
|
|
|
|
include/position2d.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/quaternion.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/rect.h
|
|
|
|
include/S3DVertex.h
|
|
|
|
include/SAnimatedMesh.h
|
|
|
|
include/SceneParameters.h
|
|
|
|
include/SColor.h
|
|
|
|
include/SExposedVideoData.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/SIrrCreationParameters.h
|
2016-07-04 18:25:03 -04:00
|
|
|
include/SKeyMap.h
|
|
|
|
include/SLight.h
|
|
|
|
include/SMaterial.h
|
|
|
|
include/SMaterialLayer.h
|
|
|
|
include/SMeshBuffer.h
|
2013-03-12 21:31:09 -04:00
|
|
|
include/SMeshBufferLightMap.h
|
2016-07-04 18:25:03 -04:00
|
|
|
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
|
|
|
|
2017-05-06 15:53:32 -04:00
|
|
|
if(USE_GLES2 OR ENABLE_WAYLAND_DEVICE)
|
|
|
|
target_link_libraries(stkirrlicht EGL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ENABLE_WAYLAND_DEVICE)
|
|
|
|
target_link_libraries(stkirrlicht wayland-client wayland-egl wayland-cursor xkbcommon)
|
|
|
|
endif()
|
|
|
|
|
2015-12-14 04:11:40 -05:00
|
|
|
if(WIN32)
|
2017-08-10 19:38:58 -04:00
|
|
|
target_link_libraries(stkirrlicht imm32 xinput9_1_0)
|
2015-12-14 04:11:40 -05:00
|
|
|
endif()
|