Skip to content

Conversation

mhqmhy
Copy link

@mhqmhy mhqmhy commented Jan 21, 2024

在stb_image_write.cpp中先defineSTB_IMAGE_WRITE_IMPLEMENTATION ,在#include"stb_iamge_write.h",相当于通过宏实现对函数的实现
在stbiw/CmakeLists.txt文件里,add_library(stbiw STATIC stb_image_write.cpp)#添加动态库
target_include_directories(stbiw PUBLIC .)#include的时候可以在当前目录搜索<>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant