Skip to content

GCC/MSVC编译器支持#6

Open
tch0 wants to merge 5 commits intoturesnake:masterfrom
tch0:master
Open

GCC/MSVC编译器支持#6
tch0 wants to merge 5 commits intoturesnake:masterfrom
tch0:master

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.

1 participant