Is there a way to use sdl-config in CMake?
相关问题
- Avoid cmake to add the flags -search_paths_first a
- CMakeList file to generate LLVM bitcode file from
- How to fix NDK build error for HelloCardboard samp
- Linking against GLEW with CMake
- Linking libavcodec in Cmake, find_library won'
相关文章
- Target requires the language dialect “CXX17” (with
- How do I tell cmake not to create a console window
- What specifically causes EPrivilege to be raised?
- Do something for all targets
- CMake: Replace compile flags of an INTERFACE targe
- How to install/compile SDL2 C code on Linux/Ubuntu
- Generate Web Assembly from CMake Project with a Sp
- Integrate ITK (Insight Toolkit) into own project
Yes. Just use
find_program()
to find it andexecute_process()
to run it and capture its output. If you actually want to test for SDL and use it in your project, CMake comes withFindSDL.cmake
, so you could just putfind_package(SDL)
in yourCMakeLists.txt
and then just accessSDL_CFLAGS
and so on directly.