TRIQS/itertools 1.3.0
C++ range library
|
itertools is a header only library and installation is not necessary. However, it still supports the usual installation procedure using CMake.
If you want to skip the installation step, you can go directly to Integration in C++ projects to see how you can integrate itertools into your own C++ project.
Note: To guarantee reproducibility in scientific calculations, we strongly recommend the use of a stable release version.
The dependencies of itertools are as follows:
Download the source code of the latest stable version by cloning the TRIQS/itertools repository from GitHub:
Create and move to a new directory where you will compile the code:
In the build directory call cmake, including any additional custom CMake options (see below):
Note that it is required to specify CMAKE_INSTALL_PREFIX
, otherwise CMake will stop with an error.
Compile the code, run the tests and install the application:
Replace N
with the number of cores you want to use to build the library.
To use a particular version, go into the directory with the sources, and look at all available versions:
Checkout the version of the code that you want:
and follow steps 2 to 4 to compile the code.
The compilation of itertools can be configured using CMake options
Options | Syntax |
---|---|
Specify an installation path | -DCMAKE_INSTALL_PREFIX=path_to_install_dir |
Build in Debugging Mode | -DCMAKE_BUILD_TYPE=Debug |
Disable testing (not recommended) | -DBuild_Tests=OFF |
Build the documentation | -DBuild_Documentation=ON |
Build benchmarks | -DBuild_Benchs=ON |