1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Include header files in CMake sources (#16297)

This commit is contained in:
Lucas OH 2025-07-12 13:23:35 +02:00 committed by GitHub
parent f71e1447c9
commit ce2380b58e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 139 additions and 6 deletions

View file

@ -312,6 +312,11 @@ set(link_includes
# Source files
set(IRRMESHLOADER
CB3DMeshFileLoader.h
CGLTFMeshFileLoader.h
COBJMeshFileLoader.h
CXMeshFileLoader.h
CB3DMeshFileLoader.cpp
CGLTFMeshFileLoader.cpp
COBJMeshFileLoader.cpp
@ -319,15 +324,25 @@ set(IRRMESHLOADER
)
add_library(IRRMESHOBJ OBJECT
CMeshSceneNode.h
CAnimatedMeshSceneNode.h
SkinnedMesh.cpp
CMeshSceneNode.cpp
CAnimatedMeshSceneNode.cpp
${IRRMESHLOADER}
)
target_link_libraries(IRRMESHOBJ PUBLIC tiniergltf::tiniergltf)
set(IRRDRVROBJ
CNullDriver.h
CGLXManager.h
CWGLManager.h
CEGLManager.h
CSDLManager.h
CNullDriver.cpp
CGLXManager.cpp
CWGLManager.cpp
@ -341,6 +356,11 @@ set(IRRDRVROBJ
if(ENABLE_OPENGL)
set(IRRDRVROBJ
${IRRDRVROBJ}
COpenGLCacheHandler.h
COpenGLDriver.h
COpenGLSLMaterialRenderer.h
COpenGLExtensionHandler.h
COpenGLCacheHandler.cpp
COpenGLDriver.cpp
COpenGLSLMaterialRenderer.cpp
@ -351,8 +371,11 @@ endif()
# the unified drivers
if(ENABLE_OPENGL3 OR ENABLE_GLES2)
file(GLOB IRRDRVR_HDRS "${CMAKE_CURRENT_SOURCE_DIR}/OpenGL/*.h")
set(IRRDRVROBJ
${IRRDRVROBJ}
${IRRDRVR_HDRS}
OpenGL/Driver.cpp
OpenGL/ExtensionHandler.cpp
OpenGL/FixedPipelineRenderer.cpp
@ -365,6 +388,7 @@ endif()
if(ENABLE_OPENGL3)
set(IRRDRVROBJ
${IRRDRVROBJ}
OpenGL3/DriverGL3.h
OpenGL3/DriverGL3.cpp
)
endif()
@ -372,11 +396,20 @@ endif()
if(ENABLE_GLES2)
set(IRRDRVROBJ
${IRRDRVROBJ}
OpenGLES2/DriverGLES2.h
OpenGLES2/DriverGLES2.cpp
)
endif()
set(IRRIMAGEOBJ
CColorConverter.h
CImage.h
CImageLoaderJPG.h
CImageLoaderPNG.h
CImageLoaderTGA.h
CImageWriterJPG.h
CImageWriterPNG.h
CColorConverter.cpp
CImage.cpp
CImageLoaderJPG.cpp
@ -387,12 +420,21 @@ set(IRRIMAGEOBJ
)
add_library(IRRVIDEOOBJ OBJECT
CFPSCounter.h
CFPSCounter.cpp
${IRRDRVROBJ}
${IRRIMAGEOBJ}
)
add_library(IRRIOOBJ OBJECT
CFileList.h
CFileSystem.h
CLimitReadFile.h
CMemoryFile.h
CReadFile.h
CWriteFile.h
CZipReader.h
CFileList.cpp
CFileSystem.cpp
CLimitReadFile.cpp
@ -403,6 +445,14 @@ add_library(IRRIOOBJ OBJECT
)
add_library(IRROTHEROBJ OBJECT
CIrrDeviceSDL.h
CIrrDeviceLinux.h
CIrrDeviceStub.h
CIrrDeviceWin32.h
CLogger.h
COSOperator.h
os.h
CIrrDeviceSDL.cpp
CIrrDeviceLinux.cpp
CIrrDeviceStub.cpp
@ -439,6 +489,22 @@ if(USE_XCURSOR)
endif()
add_library(IRRGUIOBJ OBJECT
CGUIButton.h
CGUICheckBox.h
CGUIComboBox.h
CGUIEditBox.h
CGUIEnvironment.h
CGUIFileOpenDialog.h
CGUIFont.h
CGUIImage.h
CGUIListBox.h
CGUIScrollBar.h
CGUISkin.h
CGUIStaticText.h
CGUITabControl.h
CGUISpriteBank.h
CGUIImageList.h
CGUIButton.cpp
CGUICheckBox.cpp
CGUIComboBox.cpp
@ -458,8 +524,21 @@ add_library(IRRGUIOBJ OBJECT
# Library
file(GLOB_RECURSE IrrlichtMt_PUBLIC_HDRS "${CMAKE_CURRENT_SOURCE_DIR}/../include/*.h")
# There have to be some sources in IrrlichtMt to workaround Cmake Xcode generator bug
add_library(IrrlichtMt STATIC
${IrrlichtMt_PUBLIC_HDRS}
CBillboardSceneNode.h
CCameraSceneNode.h
CDummyTransformationSceneNode.h
CEmptySceneNode.h
CMeshManipulator.h
CSceneCollisionManager.h
CSceneManager.h
CMeshCache.h
CBillboardSceneNode.cpp
CCameraSceneNode.cpp
CDummyTransformationSceneNode.cpp