Questions
Answer the following questions to test your knowledge of this chapter:
- How can we instruct CMake to make a CMake target installable?
- Which files are installed when a target is installed via the
install(TARGETS)
command? - For library targets, are header files installed by the
install(TARGETS)
command? Why? If not, what can be done to install them as well? - What does the
GNUInstallDirs
CMake module provide? - How can you selectively install a directory’s content in a destination directory?
- Why should we use relative paths when specifying install destination directories?
- What are the essential files required for a
config-file
package? - What does exporting a target mean?
- How can you make a CMake project packageable with CPack?