Of course, using a package manager such as vcpkg would be the best. If you are on Linux and only need SDL2 you don't even need the FindSDL2. Just make sure your friend follows the installation correctly and SDL2 should have FindSDL.cmake or something like that which will be used by findpackage (SDL2 REQUIRED) The trick is usually to add installation paths with -DCMAKEPREFIXPATHC:\path\to\sdl. Using these Find modules will also work on Windows. They can be based of the ones that work for SDL 1.2 which are included in CMake already. Here is my CMakeLists.txt: cmakeminimumrequired(VERSION 3.14). +ifndef NOWINSDKVERH +include +endif + / This is a set of defines to configure the SDL features / if defined (STDINTH) & (defined (HAVESTDINTH). I am trying to build a basic SDL2 project using SDLnet and SDLttf using CMake on Windows 10, but I am having issues building the project using CMakeâs FetchContent.+ Define NOWINSDKVERH if your SDK version doesn't provide this, or use CMake which can detect it automatically. See also the latest Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 2.28.2_vs_2.28.3. Basically you need a FindSDL2.cmake and FindSDL2image.cmake module. It is present since at least the Windows 7 SDK. InputCommon::SDL::SDLState later tries to initialize the game. You need to install the C/C++ plugin from Microsoft. I ended up with Citra Nightly 1784 and I find with my Windows 10 64 bit Ryzen 5 3500X. As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers.Īlternatively you can here view or download the uninterpreted source code file. The first thing that we need to install is Visual Studio Code editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |