DeAI Research
Source · Focal Press eBooks

Installing and using CMake

2024Matthew John Yee-King

cid ac76dc3adcc93c34b9c2f4875b4b775b80da4156ac8041c814ba8a47f2baa37c · original · via openalex

Title: Installing and using CMake
Authors: Matthew John Yee-King
Venue: Focal Press eBooks
Year: 2024
Canonical: doi:10.4324/9781003365495-5
URL: https://doi.org/10.4324/9781003365495-5
Collector: openalex
OA: false

ABSTRACT
Now that everything is working, we are going to go back a step and break everything again(!). We will swap out the Projucer application for an alternative project generator tool called CMake. This chapter shows you how to get up and running with JUCE and CMake. CMake is a more general-purpose tool than Projucer, and it is particularly good at integrating libraries into projects if they also use CMake. The machine learning library libtorch and the neural network library RTNeural are examples of libraries we’ll use later that support CMake. You may wonder why we bothered with Projucer instead of going straight for CMake. Three reasons: 1) I wanted to lead you in gently, 2) Projucer is helpful for running and building example projects from JUCE, and it provides a more straightforward method to verify that you have an IDE with C++ capabilities and JUCE 3) Putting CMake in the mix too early would provide too many opportunities for frustrating configuration problems. Don’t worry – setting up CMake should be straightforward if you are here and you have a working build system.