Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我完成了作业 #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

我完成了作业 #104

wants to merge 1 commit into from

Conversation

hdxa
Copy link

@hdxa hdxa commented Sep 8, 2022

add_library(stbiw STATIC stb_image_write.cpp),把文件添加到库里
target_include_directories(stbiw PUBLIC .),让要使用这个库的文件,可以像访问当前目录一样访问他

#define STB_IMAGE_WRITE_IMPLEMENTATION, (纯0基础萌新,看视频也找不到答案,不知道需要补什么知识。。)这一步我不懂,根据老师的提示信息,一次次尝试出来的。。。
#include <stb_image_write.h>,添加头文件进去。

我的理解是,stbiw的作用就是将需要的功能打包起来,以后需要用到,直接在CMake里设置导入就行,把功能变成一个个模块,拿过来就用,类似原子性的思想

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