SDL2 in fetchcontent as well

This commit is contained in:
2025-07-06 00:02:45 -05:00
parent 3995241da3
commit 3aa4150ea8
8 changed files with 128 additions and 20 deletions

View File

@@ -2,8 +2,7 @@
#if defined(TESSESFRAMEWORK_ENABLE_SDL2)
#include <array>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "SDL_Headers.hpp"
#include <string>
#include <vector>
namespace Tesses::Framework::SDL2

View File

@@ -1,6 +1,6 @@
#pragma once
#if defined(TESSESFRAMEWORK_ENABLE_SDL2)
#include <SDL2/SDL.h>
#include "SDL_Headers.hpp"
#include "FontCache.hpp"
#include "../Filesystem/VFSFix.hpp"
#include "../Filesystem/VFS.hpp"

View File

@@ -0,0 +1,10 @@
#pragma once
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#if defined(TESSESFRAMEWORK_FETCHCONTENT)
#include <SDL_image.h>
#include <SDL_ttf.h>
#else
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#endif

View File

@@ -37,6 +37,4 @@
#include "Platform/Environment.hpp"
#include "Platform/Process.hpp"
#include "Text/StringConverter.hpp"
#include "SDL2/FontCache.hpp"
#include "SDL2/Stream.hpp"
#include "SDL2/GUI.hpp"
#include "SDL2/SDL_Headers.hpp"