This repository contains vcpkg to build libraries. So to clone the repository, the --recurse-submodule
flag is needed. With this flag, repository has to be cloned with ssh :
With SSH :
git clone --recurse-submodules git@github.com:guillaumeLepape/Elevation.git
If you forget to add the flag, running git submodule update --init
will get all the submodules for you after you’ve cloned.
- CMake 3.12 or more
sudo apt install cmake
To build the libraries, you need to setup vcpkg. To do it, make sure you clone the vcpkg submodule. Run the boostrap script and make the packages available user-side
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg integrate install
Generate the makefile in repository folder with
cmake -Bbuild -S. -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
In repository folder, compile with
cmake --build <build_folder>
To make build faster, you can compile in parallel with the -j
flag
cmake --build <build_folder> -j <nb_core>
Once the program is compiled, run main
executable by writing
./<build_folder>/src/main
This program uses googletest to generate tests. By default, tests are compiled. To run them, use the following command
./build/test/test_elevation
To generate doxygen documentation, go to doc/Doxygen
folder and run
doxygen Doxyfile
Open the documentation with
firefox html/index.html