include - How do I link SDL2 using CMake? -
i used .cmake files https://github.com/brendan-w/collector/tree/master/cmake, , put them in same directory cmakelists.txt, used code:
set(cmake_module_path findsdl2.cmake findsdl2_image.cmake) find_package(sdl2 required) but i'm getting error:
cmake error @ cmakelists.txt:26 (find_package): not providing "findsdl2.cmake" in cmake_module_path project has asked cmake find package configuration file provided "sdl2", cmake did not find one. not find package configuration file provided "sdl2" of following names: sdl2config.cmake sdl2-config.cmake add installation prefix of "sdl2" cmake_prefix_path or set "sdl2_dir" directory containing 1 of above files. if "sdl2" provides separate development package or sdk, sure has been installed.
Comments
Post a Comment