sdl2-boilerplate:带有 CMake 的简单 C++ SDL 样板

时间:2021-07-08 18:42:14
【文件属性】:
文件名称:sdl2-boilerplate:带有 CMake 的简单 C++ SDL 样板
文件大小:13KB
文件格式:ZIP
更新时间:2021-07-08 18:42:14
C++ 借用 依赖关系 Xcode(使用 6.1.1 测试) SDL2: brew install sdl2 可选的 SDL2_TTF: brew install sdl2_ttf 可选的 SDL2_Image: brew install sdl2_image CMake: brew install cmake 定制 cp CMakeLists.txt.dist CMakeLists.txt 将CMakeLists.txt出现的所有MyProject更改为您的项目名称。 构建和编译 cd build cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../ make make install 编译后的二进制文件现在可以在bin/
【文件预览】:
sdl2-boilerplate-master
----bin()
--------.gitignore(6B)
--------.gitkeep(0B)
----cmake()
--------FindSDL2.cmake(9KB)
--------FindSDL2_ttf.cmake(6KB)
--------FindSDL2_image.cmake(6KB)
----.DS_Store(6KB)
----src()
--------main.cpp(281B)
----CMakeLists.txt.dist(1KB)
----README.md(593B)
----build()
--------.gitignore(6B)
--------.gitkeep(0B)

网友评论