Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 603 Bytes

gcc-compilation-guide.md

File metadata and controls

43 lines (31 loc) · 603 Bytes

🔨 Building project with G++

1. Install G++

sudo apt install cmake ninja-build g++-13

2. Prepare build directory

git clone https://github.com/cieslarmichal/faker-cxx.git
cd faker-cxx
git submodule update --init --recursive

3. Setup CMake

cmake -B ./build -DCMAKE_CXX_COMPILER=g++ -DBUILD_TESTING=ON

4. Build

cmake --build ./build

5. Run tests

./build/tests/faker-cxx-UT

Alternatively, the path may instead be:

./build/tests/Debug/faker-cxx-UT.exe

or using CTest:

ctest --test-dir ./build