Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 514 Bytes

gcc-compilation-guide.md

File metadata and controls

39 lines (27 loc) · 514 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

or using CTest:

ctest --test-dir ./build