AntaresSimulatorTeam / Antares_Simulator

Antares-Simulator is an Open Source power system simulator to quantify the adequacy or the economic performance of interconnected energy systems, at short or remote time horizons.
https://antares-simulator.org
Other
57 stars 23 forks source link

One command to build them all #132

Closed flomnes closed 2 years ago

flomnes commented 3 years ago

One command to rule them all, one command to find them, one command to bring them all, and in the darkness build them.

One Ring

sgatto commented 3 years ago

I'm a bit lost :) Is it because of my quest or is it the riddle?

flomnes commented 3 years ago

The idea would be to install all deps and compile the Antares Simulator project with one command. Because it's a bit hard for new users to compile all the deps by hand, provide the deps install dir, etc.

jmkerloch commented 3 years ago

This should already work for ubuntu or windows :

cmake -B _build -S src -DCMAKE_BUILD_TYPE=release -DBUILD_ALL=ON

But this will compile also wxWidget and all libraries that can be available on a package manager (apt-get or vcpkg).

You can use : cmake -B _build -S src -DCMAKE_BUILD_TYPE=release -DBUILD_sirius=ON -DBUILD_ortools=ON

or cmake -B _build -S src -DCMAKE_BUILD_TYPE=release -DBUILD_not_system=ON

so 'package manager' libraries are not compiled.

sgatto commented 3 years ago

@flomnes would you prefer these instructions to be presented differently in the install page?

flomnes commented 3 years ago

I will test these instructions on a fresh Ubuntu install. If they work, I think it would be nice to have them in INSTALL.md