Install the build artifacts using the custom prefix for paths

cmake

  • Cross-platform build automation system, that generates recipes for native build systems.
    More information: <https://cmake.org/cmake/help/latest/manual/cmake.1.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cmake --install {{path/to/build_directory}} --strip --prefix {{path/to/directory}}

click the source code to copy install cmake on any operating system with command-not-found.com