Installation
Before using the library, you can try it online, or you can download the core library as a single header.
Multi has no external dependencies and can be used immediately after downloading.
git clone https://gitlab.com/correaa/boost-multi.git
Multi doesn’t require installation since a single header is enough to use the entire core library;
#include <multi/array.hpp>
int main() { ... }
The library can still be installed with CMake.
The header (and CMake) files will be installed in the chosen prefix location (by default, /usr/local/include/multi and /usr/local/share/multi).
cd boost-multi
mkdir -p build && cd build
cmake . -B ./build # --install-prefix=$HOME/.local
cmake --install ./build # or sudo ...
Testing the library requires Boost.Core (headers), installed for example, via
sudo apt install cmake git g++ libboost-test-dev make
or sudo dnf install boost-devel cmake gcc-c++ git.
A CMake build system is provided to compile and run basic tests.
ctest -C ./build
Once installed, other CMake projects (targets) can depend on Multi by adding a single line: add_subdirectory(my_multi_path), or by adding find_package:
find_package(multi) # see https://gitlab.com/correaa/boost-multi
Alternatively, the library can be fetched on demand:
include(FetchContent)
FetchContent_Declare(multi GIT_REPOSITORY https://gitlab.com/correaa/boost-multi.git)
FetchContent_MakeAvailable(multi)
...
target_link_libraries(my_target PUBLIC multi)