-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Minimal CMake
By :
In the previous chapter, we stuck largely to manual CMake build and install commands (along with a bit of help from CMake presets) to increase our familiarity with CMake, and to work at a slightly lower level of abstraction to understand what CMake is doing behind the scenes. Now that we’re a bit more comfortable with these concepts, it’s time to remove the tedium of navigating to each individual library folder and running the familiar CMake commands that follow:
cmake --preset <preset-name> cmake --build <build-folder> --target install
We can start updating our project to take advantage of the more useful features that CMake provides. To start with, we’re going to update our existing third-party CMakeLists.txt file to bring in not only SDL 2 and bgfx but also the libraries we created and depend on. This will remove the need for us to manually install them and allow us to run a single pair of CMake...