From 0b62f185e5fdd757d24fdac16cdf4fcc694d834d Mon Sep 17 00:00:00 2001 From: ymj4023 <1249137842@qq.com> Date: Sun, 2 Jul 2023 11:59:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8F=82=E8=80=83=E4=BA=86=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E4=BA=BA=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + stbiw/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9ed92a0..fcf931d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build GNUmakefile +.vscode diff --git a/stbiw/CMakeLists.txt b/stbiw/CMakeLists.txt index b56b853..3561415 100644 --- a/stbiw/CMakeLists.txt +++ b/stbiw/CMakeLists.txt @@ -1 +1,2 @@ -message(FATAL_ERROR "请修改 stbiw/CMakeLists.txt!要求生成一个名为 stbiw 的库") +add_library(stbiw stb_image_write.cpp) +target_include_directories(stbiw PUBLIC .) \ No newline at end of file From ae032dbb01f92b3579321b6e0bf7a126aac752e2 Mon Sep 17 00:00:00 2001 From: ymj4023 <1249137842@qq.com> Date: Sun, 2 Jul 2023 12:02:03 +0800 Subject: [PATCH 2/2] =?UTF-8?q?"=E6=8F=90=E4=BA=A4=E6=88=91=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9,=E5=8F=82=E8=80=83=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E4=BA=BA=E7=9A=84=E4=BB=A3=E7=A0=81"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stbiw/stb_image_write.cpp | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 stbiw/stb_image_write.cpp diff --git a/stbiw/stb_image_write.cpp b/stbiw/stb_image_write.cpp new file mode 100644 index 0000000..2f540c3 --- /dev/null +++ b/stbiw/stb_image_write.cpp @@ -0,0 +1,2 @@ +#define STB_IMAGE_WRITE_IMPLEMENTATION +#include \ No newline at end of file