Installation#

Caterva can be built, tested and installed using CMake. The following procedure describes a typical CMake build.

  1. Download the source code from Github:

    git clone --recurse-submodules git@github.com:Blosc/caterva.git
    
    git clone --recurse-submodules git@github.com:Blosc/caterva.git
    
  2. Create the build directory inside the sources and move into it:

    cd caterva
    mkdir build
    cd build
    
    cd caterva
    mkdir build
    cd build
    
  3. Now run CMake configuration:

    cmake -DCMAKE_BUILD_TYPE='Debug/Release' ..
    
    cmake ..
    
  4. Build and test Caterva:

    cmake --build .
    ctest
    
    cmake --build . --config 'Debug/Release'
    ctest --build-config 'Debug/Release'
    
  5. If desired, install Caterva:

    cmake --build . --target install
    
    cmake --build . --target install --config 'Debug/Release'
    

That’s all folks!