Building Nostalgia via CMake GUI is exceptionally easy to do; just set the source directory to the repository (e.g: where `CMakeLists.txt` is located) and select your preset from the 'presets' dropdown. After that, you'll notice a build directory will be chosen for you; this is intentional and should not be changed (you *can* if you want to, but the `.gitignore` file won't ignore it so be mindful). After pressing 'configure' once, a *lot* of options will pop up; most of these are from the included libraries that Nostalgia depends on and shouldn't be configured (they'll be overridden internally, anyways). Currently, there aren't any options to set that aren't set by the presets (e.g: static/dynamic library, debug/release version); if I add any in the future, I'll also try to hide the thirdparty options and write up some documentation for them. If you want to generate a `compile_commands.json` file, add a boolean entry named `CMAKE_EXPORT_COMPILE_COMMANDS` and enable it (e.g: set it to 'ON'). Oh, and in case you didn't know: if you wanna set the compiler (say, to 'clang++'), you'll want to add/set the entry `CMAKE_CXX_COMPILER` to your compiler of choice.
0 commit comments