开发者

CMake sdl-config

Is 开发者_如何学编程there a way to use sdl-config in CMake?


Yes. Just use find_program() to find it and execute_process() to run it and capture its output. If you actually want to test for SDL and use it in your project, CMake comes with FindSDL.cmake, so you could just put find_package(SDL) in your CMakeLists.txt and then just access SDL_CFLAGS and so on directly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜