I would like to slightly expand on the answer that ComicSansMS gave you.
As he mentioned, CMake generates an additional target called install for the make tool (when you use the Makefile generator).
This may seem strange to you, since the package system is used for Linux. However, the install target is still useful or even necessary:
- When developing an application, you may need to install (move binary files and possibly some include files) to a specific location so that some of your projects can see each other. For example, you can develop a library and a set of unrelated applications that use it. Then this library must be installed somewhere in order to be visible. This does not mean that you need to put it in the
/usr directory; You can use your /home . - The Linux package preparation process requires installation. For example, the RPM build system takes three main steps when creating the rpm package file: the project is configured, then compiled and linked, and finally installed in a specific place. All files from this location are packaged into an rpm file.
source share