Skip to content

Commit

Permalink
Add header files as sources so that they might be displayed in IDEs
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Oct 3, 2024
1 parent 3fdb812 commit 43bbadc
Showing 1 changed file with 200 additions and 0 deletions.
200 changes: 200 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,205 @@ set(TGUI_SRC
Widgets/VerticalLayout.cpp
)

set(TGUI_HEADERS
"${PROJECT_SOURCE_DIR}/include/TGUI/AbsoluteOrRelativeValue.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/AllWidgets.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Animation.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Any.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Base64.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Color.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Components.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Config.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Container.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/CopiedSharedPtr.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Core.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Cursor.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/CustomWidgetForBindings.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/DefaultBackendWindow.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/DefaultFont.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Duration.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Event.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Exception.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/FileDialogIconLoader.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Filesystem.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Font.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Global.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Keyboard.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Layout.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/ObjectConverter.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Optional.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Outline.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Rect.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/RelFloatRect.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/RendererDefines.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/RenderStates.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Signal.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/SignalManager.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Sprite.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/String.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/StringView.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/SubwidgetContainer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/SvgImage.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Text.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/TextStyle.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/TextureData.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Texture.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/TextureManager.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/TGUI.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Timer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/ToolTip.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Transform.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/TwoFingerScrollDetect.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Utf.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Variant.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Vector2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Vertex.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widget.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/WindowsIMM.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/raylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SFML-OpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SDL-TTF-OpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SDL-Renderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/GLFW-OpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/GLFW-GLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SDL-GLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SDL-TTF-GLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SDL-OpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/SFML-Graphics.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/BackendTexture.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/BackendText.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/BackendRenderTarget.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/BackendRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/OpenGL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/GLES2/CanvasGLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/GLES2/BackendTextureGLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/GLES2/BackendRendererGLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/GLES2/BackendRenderTargetGLES2.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SDL_Renderer/BackendTextureSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SDL_Renderer/CanvasSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SDL_Renderer/BackendRendererSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SDL_Renderer/BackendRenderTargetSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SFML-Graphics/BackendRenderTargetSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SFML-Graphics/BackendRendererSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SFML-Graphics/BackendTextureSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/SFML-Graphics/CanvasSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/Raylib/BackendTextureRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/Raylib/BackendRendererRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/Raylib/CanvasRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/Raylib/BackendRenderTargetRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/OpenGL3/BackendRendererOpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/OpenGL3/CanvasOpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/OpenGL3/BackendTextureOpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Renderer/OpenGL3/BackendRenderTargetOpenGL3.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/BackendGui.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/Backend.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/Raylib/BackendRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/Raylib/BackendGuiRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/SDL/BackendSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/SDL/BackendGuiSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/SFML/BackendGuiSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/SFML/BackendSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/GLFW/BackendGLFW.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Window/GLFW/BackendGuiGLFW.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Font/BackendFontFactory.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Font/BackendFont.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Font/SDL_ttf/BackendFontSDLttf.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Font/SFML-Graphics/BackendFontSFML.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Font/Raylib/BackendFontRaylib.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Backend/Font/FreeType/BackendFontFreeType.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/ImageLoader.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/Serializer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/ThemeLoader.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/Theme.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/DataIO.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/Deserializer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Loading/WidgetFactory.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ChildWindowRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ListViewRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ProgressBarRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/MessageBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/PictureRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ChatBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/KnobRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ButtonRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ComboBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/TextAreaRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/PanelListBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/PanelRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/BoxLayoutRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/TreeViewRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/LabelRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/WidgetRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/GroupRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/EditBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/RangeSliderRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/SplitContainerRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/FileDialogRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/RadioButtonRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ScrollbarRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/TabsRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/SeparatorLineRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/SliderRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/SpinButtonRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/TextBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/CheckBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ColorPickerRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ListBoxRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/MenuBarRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Renderers/ScrollablePanelRenderer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ComboBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/VerticalLayout.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/MessageBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Group.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/FileDialog.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Knob.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ButtonBase.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/BitmapButton.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/RangeSlider.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Button.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/SpinControl.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/CanvasBase.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/RadioButtonGroup.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ToggleButton.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Grid.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ListBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ListView.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/HorizontalWrap.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ClickableWidget.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/MenuBar.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/SeparatorLine.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ColorPicker.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/CheckBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Scrollbar.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/PanelListBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/TreeView.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Label.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Panel.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/BoxLayoutRatios.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Picture.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/SpinButton.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/SplitContainer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/EditBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ChatBox.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/RadioButton.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Slider.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ScrollablePanel.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/Tabs.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/BoxLayout.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/HorizontalLayout.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/TextArea.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/TabContainer.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ChildWindow.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/RichTextLabel.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/ProgressBar.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/Widgets/EditBoxSlider.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/extlibs/IncludeWindows.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/extlibs/IncludeSDL.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/extlibs/IncludeStbImage.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/extlibs/IncludeNanoSVG.hpp"
"${PROJECT_SOURCE_DIR}/include/TGUI/extlibs/IncludeStbImageWrite.hpp"
)

if(TGUI_OS_WINDOWS)
list(APPEND TGUI_SRC FileDialogIconLoaderWindows.cpp)
elseif(TGUI_OS_LINUX)
Expand Down Expand Up @@ -240,6 +439,7 @@ if (TGUI_BUILD_AS_CXX_MODULE)
else()
target_sources(tgui PRIVATE ${TGUI_SRC})
endif()
target_sources(tgui PRIVATE ${TGUI_HEADERS})

if (${CMAKE_VERSION} VERSION_LESS "3.18")
# We don't support using CMAKE_UNITY_BUILD in CMake < 3.18 (because we need UNITY_BUILD_MODE)
Expand Down

0 comments on commit 43bbadc

Please sign in to comment.