Installing and packaging
We're circling back to the subject discussed in the previous chapter and starting with a quick overview of the files needed to set up installation and packaging:
Only files are needed here – most of the work is already done in previous sections. As you may remember, the top-level listfile includes a CMake module that's going to handle this process:
chapter-12/01-full-project/CMakeLists.txt (fragment)
... include(Install)
We're interested in installing two items:
- The Calc library artifacts: the static library, the shared library, and header files along with their target export file
- The Calc console executable
The package definition config-file will only introduce library targets, as potential consuming projects won't depend on the executable.
After configuring the installation steps, we'll move on to the CPack...