From 3fe49ac377e77566ac156e2949b98698095f64af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Thu, 2 Dec 2021 15:09:44 +0100
Subject: [PATCH] Update README.md

---
 README.md | 47 +++++++++++++++++++++++++++--------------------
 1 file changed, 27 insertions(+), 20 deletions(-)

diff --git a/README.md b/README.md
index b9bebbc..f541e6b 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
+```
-- 
GitLab