![Forrest logo](/images/logo.png)
cmake:tldr:4f572
The "cmake --install" command is used to install the output files generated by CMake after building a project.
Here is the breakdown of the different parts of the command:
-
"cmake": It is the command to run the CMake tool.
-
"--install": This option in CMake specifies that we want to install the built files.
-
"${path-to-build_directory}": It specifies the path to the build directory where CMake generated the build files, including the binaries and other build artifacts.
-
"--strip": This option tells CMake to strip debug symbols from installed binary files, reducing their size.
-
"--prefix ${path-to-directory}": This option sets the installation prefix or the base directory where the files will be installed. The "${path-to-directory}" should be replaced with the desired path where you want to install the project.
Overall, this command will take the files from the specified build directory and install them into the provided installation prefix directory, while also stripping debug symbols from the installed binaries if the "--strip" option is used.