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

Long_hw_01 #121

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

Conversation

LLong0218
Copy link

学习了cmake,总结:
1.尖括号使用场景:库目录已经连接在cmakelist里
引号:同级头文件
2.这次的define宏定义似乎必须写在include前,不太明白原理
3.新建cpp文件实现原有头文件,并在stbiw目录下的cmakelist里add_library此cpp文件,link一下就可以编译通过了,值得一提的是pragma once加上可以提高下编译速度,避免重复编译

学习了cmake,总结:
1.尖括号使用场景:库目录已经连接在cmakelist里,引号:同级头文件
2.这次的define宏定义似乎必须写在include前,不太明白原理
3.新建cpp文件实现原有头文件,并在stbiw目录下的cmakelist里add_library此cpp文件,link一下就可以编译通过了,值得一提的是pragma once加上可以提高下编译速度,避免重复编译
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