The Tudat bundle contains Tudat and a number of external libraries in a modular fashion. The TU Delft Astrodynamics Toolbox (Tudat) is a set of C++ software libraries for simulating various astrodynamics applications, for more info see the Tudat website.
This document contains minimal information on how to build the Tudat bundle. For more information see documentation below.
-
Clone the repository on your computer (or fork and then clone)
git clone https://github.com/tudat/tudatBundle.git
-
Enter the new directory
cd tudatBundle
-
Checkout all the submodules (optionally you can clone only the necessary submodules)
git submodule update --init --recursive
-
Make a new build directory and enter
mkdir build && cd build
-
Initiate CMake for the project
cmake ../
-
Build the project
make
Note: it can happen that due to dependencies between the submodules the make
process quits with an error (after building SPICE or JSONCPP, for instance). In this case, please repeat steps 5 and 6 once or twice.
-
Edit
CMakeLists.txt
-
Comment out or add new
add_subdirectory
lines. The argument ofadd_subdirectory
should be the path containing the library's or application's CMakeLists.txt.
-
Copy the
templateApplication
fromtudatExampleApplications
to tudatApplications and give it your own namecp -R tudatExampleApplications/templateApplication tudatApplications/myApplication
-
Add your project to the central
CMakeLists.txt
, see intructions above. -
Re-run cmake and make commands.