The installation directory is usually left at its default, which is /usr/local . Installing software here ensures that it is automatically available to users. It is possible to specify a different installation directory by adding -DCMAKE_INSTALL_PREFIX=/path/to/install/dir to the CMake command line.
How install Cmake command in Linux?
How to download, compile, and install CMake on Linux
- Download: $ wget
- Extration of cmake source code from downloaded file: $ tar xzf cmake-2.8.3.tar.gz $ cd cmake-2.8.3.
- Configuration: …
- Compilation: …
- Installation: …
- Verification:
Where do I put Cmake files?
cmake can be generated by CMakePackageConfigHelpers module. You can install them into /usr/share/cmake/SomeProject/ folder, for example. For full list of default paths used by CMake see find_package documentation.