CMake sdl-config

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 12:23:24

问题


Is there a way to use sdl-config in CMake?


回答1:


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.



来源:https://stackoverflow.com/questions/3792327/cmake-sdl-config

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!