![]() ![]() Then you have to modify the CMake module path so that it can be found. In order to use it you have to place it somewhere in your project for instance into a cmake subdirectory. REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR This module will set the following variables in. You can use the following code: cmake_minimum_required (VERSION 3.7 ) project (SDL2Test ) find_package (SDL2 REQUIRED ) include_directories ( $ ) include (FindPackageHandleStandardArgs ) FIND_PACKAGE_HANDLE_STANDARD_ARGS (SDL This module defines the following IMPORTED target: SDL::SDL. The official Wiki at gives only little information on how to build and install SDL2 on Windows to utilize the library for your projects. Here is my CMakeLists.txt: cmakeminimumrequired(VERSION 3.14). app bundles)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |