aboutsummaryrefslogtreecommitdiff
path: root/3rdparty/stb
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/stb')
-rw-r--r--3rdparty/stb/CMakeLists.txt13
-rw-r--r--3rdparty/stb/implementation.c8
m---------3rdparty/stb/source0
3 files changed, 21 insertions, 0 deletions
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 <stb_rect_pack.h>
+
+#define STB_TRUETYPE_IMPLEMENTATION
+#include <stb_truetype.h>
+
+#define STB_IMAGE_IMPLEMENTATION
+#include <stb_image.h>
diff --git a/3rdparty/stb/source b/3rdparty/stb/source
new file mode 160000
+Subproject af1a5bc352164740c1cc1354942b1c6b72eacb8