summaryrefslogtreecommitdiffstats
path: root/deps/src/stb
diff options
context:
space:
mode:
Diffstat (limited to 'deps/src/stb')
-rw-r--r--deps/src/stb/CMakeLists.txt4
-rw-r--r--deps/src/stb/stb.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/deps/src/stb/CMakeLists.txt b/deps/src/stb/CMakeLists.txt
new file mode 100644
index 0000000..8eae420
--- /dev/null
+++ b/deps/src/stb/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_library(stb STATIC "${CMAKE_CURRENT_LIST_DIR}/stb.c")
+target_compile_definitions(stb PRIVATE _CRT_SECURE_NO_WARNINGS)
+target_include_directories(stb PUBLIC "${DEPS_INCLUDE_DIR}")
+set_target_properties(stb PROPERTIES FOLDER DEPS)
diff --git a/deps/src/stb/stb.c b/deps/src/stb/stb.c
new file mode 100644
index 0000000..2a6d888
--- /dev/null
+++ b/deps/src/stb/stb.c
@@ -0,0 +1,5 @@
+#define STB_IMAGE_IMPLEMENTATION
+#include <stb_image.h>
+
+#define STB_IMAGE_WRITE_IMPLEMENTATION
+#include <stb_image_write.h>