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

GCC/MSVC编译器支持 #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

GCC/MSVC编译器支持 #6

wants to merge 5 commits into from

Conversation

tch0
Copy link

@tch0 tch0 commented Apr 7, 2023

GCC、MSVC、MinGW-w64编译器支持。
glfw不同平台使用同一个库。
使用cmake提供的跨平台文件复制操作复制资源。

现在在任意平台只需要以下操作即可完成构建与资源复制:

mkdir build
cd build
cmake .. [-G "Some Generator like Unix Makefiles/MinGW Makefiles/Visual Studio 17 2022/..."] [-DCMAKE_BUILD_TYPE=Release]
cmake --build . [--config=Release]

然后直接启动即可。

在Windows上测试了Clang/Clang-cl/MSVC/MinGW-w64,Linux上测试了Clang/GCC,MacOS无测试环境,并未测试。

@tch0 tch0 mentioned this pull request Apr 7, 2023
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.

None yet

1 participant