From f163e8f37123e651ea80b690793845b31ddb8639 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 6 Apr 2022 20:52:51 -0700 Subject: Changeset: 2 Work on moving infrastruture to this project --- 3rdparty/stb/CMakeLists.txt | 13 +++++++++++++ 3rdparty/stb/implementation.c | 8 ++++++++ 3rdparty/stb/source | 0 3 files changed, 21 insertions(+) create mode 100644 3rdparty/stb/CMakeLists.txt create mode 100644 3rdparty/stb/implementation.c create mode 100644 3rdparty/stb/source (limited to '3rdparty/stb') diff --git a/3rdparty/stb/CMakeLists.txt b/3rdparty/stb/CMakeLists.txt new file mode 100644 index 0000000..b028ed2 --- /dev/null +++ b/3rdparty/stb/CMakeLists.txt @@ -0,0 +1,13 @@ +file(GLOB STB_HEADER ${CMAKE_CURRENT_LIST_DIR}/source/*.h) +file(GLOB STD_SOURCE ${CMAKE_CURRENT_LIST_DIR}/source/*.c) +add_library(stb + ${STB_HEADER} + ${STD_SOURCE} + implementation.c +) +target_include_directories(stb PUBLIC ${CMAKE_CURRENT_LIST_DIR}/source) + +set_target_properties(stb +PROPERTIES + UNITY_BUILD OFF +) diff --git a/3rdparty/stb/implementation.c b/3rdparty/stb/implementation.c new file mode 100644 index 0000000..2ceb201 --- /dev/null +++ b/3rdparty/stb/implementation.c @@ -0,0 +1,8 @@ +#define STB_RECT_PACK_IMPLEMENTATION +#include + +#define STB_TRUETYPE_IMPLEMENTATION +#include + +#define STB_IMAGE_IMPLEMENTATION +#include diff --git a/3rdparty/stb/source b/3rdparty/stb/source new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-70-g09d2