diff --git a/README.md b/README.md index b9bebbcb9c3ee4a29d1328777631137c15564681..f541e6b5b14750aaa8523c13898f0a217ec2c62c 100644 --- a/README.md +++ b/README.md @@ -2,26 +2,6 @@ A C++ Toolbox with utilities for 2D laser scan processing, made at IRI (www.iri. # Installation -Clone the repository in your chosen directory. In a terminal: - -```sh -cd <your/path> -git clone <repo-link> -``` - -Create a directory to build all the source files: -```sh -mkdir build -cd build -``` - -Compile the source files: - -```sh -cmake .. -make -``` - ## Optional dependencies **Canonical Scan Matching - CSM** @@ -55,9 +35,36 @@ make sudo make install ``` +## Install via source + To change the install directory you must set cmake environment variable `${CMAKE_INSTALL_PREFIX}` (e.g. using command `ccmake ..` before calling `cmake ..`). Its default value on UNIX-like/Linux systems is "/usr/local". The `sudo` is required only if `${CMAKE_INSTALL_PREFIX}` is a system diretory managed by administrator user root. +Clone the repository in your chosen directory. In a terminal: + +```sh +cd <your/path> +git clone <repo-link> +``` + +Create a directory to build all the source files: +```sh +mkdir build +cd build +``` + +Compile the source files: + +```sh +cmake .. +make +``` + +Finally, you can install the library: + +```sh +make install +```