From 8381696a84876112c2494f34556ee137a65deab0 Mon Sep 17 00:00:00 2001 From: "weilun.zhou" Date: Mon, 26 Dec 2022 17:02:17 +0800 Subject: [PATCH 1/2] hw01 --- stbiw/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stbiw/CMakeLists.txt b/stbiw/CMakeLists.txt index b56b853..46b515e 100644 --- a/stbiw/CMakeLists.txt +++ b/stbiw/CMakeLists.txt @@ -1 +1,3 @@ -message(FATAL_ERROR "请修改 stbiw/CMakeLists.txt!要求生成一个名为 stbiw 的库") +#message(FATAL_ERROR "请修改 stbiw/CMakeLists.txt!要求生成一个名为 stbiw 的库") +add_library(stbiw SHARED stb_image_write.cpp) +target_include_directories(stbiw INTERFACE .) From b5c94fd3b66448eca422729d5e3d6154a88dabb6 Mon Sep 17 00:00:00 2001 From: "weilun.zhou" Date: Mon, 26 Dec 2022 17:03:38 +0800 Subject: [PATCH 2/2] hw01 --- 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..87c663a --- /dev/null +++ b/stbiw/stb_image_write.cpp @@ -0,0 +1,2 @@ +#define STB_IMAGE_WRITE_IMPLEMENTATION +#include "stb_image_write.h"