GraphLib
Bearbeitung der Aufgabe Mini Graph Library für OOP WiSe 2023/24
Loading...
Searching...
No Matches
Installation

Prerequisites

  • CMake Version 3.20 or higher
  • C++20 compatible compiler
  • git for cloning the repository
  • Access to this repository

Setting Up the Project

git clone https://gitlab.ub.uni-giessen.de/J_C1Y4S7V/oop-projekt-384.git
cd oop-projekt-384

Installing

Linux & macOS

Global Installation

cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build --target all # This only build the Examples, if you don't need them, omit this. If you want to build the Tests, you have to use the Build Type Debug to enable GTest
sudo cmake --install build --prefix=/usr/local

This will Install the Headers to /usr/local/include/GraphLib and the Cmake Package files to /usr/local/lib/cmake/GraphLib

For a local Installation, just change --prefix=... to your desired folder.


Windows (untested)

MingGW

cmake -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
cd build
mingw32-make
mingw32-make install

Visual Studio

cmake -B build -DCMAKE_BUILD_TYPE=Release # optionally add -G "Visual Studio XX XXXX" to specifiy VS Version to generate make files for
cmake --build build --config Release
cmake --install build --config Release --prefix "C:\Program Files\GraphLib"