Questions
To reinforce what you have learned in this chapter, try to answer the following questions. If you are having a hard time answering them, go back to the relevant section and re-visit the topic:
- Describe how a CMake project can be configured from the CLI into the build folder in the project’s root directory with each of the following:
- A different C++ compiler, located at
/usr/bin/clang++
- A Ninja generator
- A
-Wall
compiler flag for theDebug
build type
- A different C++ compiler, located at
- Describe how the project previously configured in Q1 can be built using CMake using the command line with each of the following:
- Eight parallel jobs
- The
--trace
option in the Unix Makefiles generator
- Describe how the project previously built in Q1 can be installed using CMake using the
directory/opt/project
command line? - Assuming the
CMake-Best-Practices
project is already configured and built, which command must be invoked to only install thech2.libraries
component? - What is an advanced variable in CMake...