Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 494 Bytes

clang-compilation-guide.md

File metadata and controls

39 lines (27 loc) · 494 Bytes

🔨 Building project with Clang

1. Install Clang

sudo apt install clang-18

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=clang++ -DBUILD_TESTING=ON

4. Build

cmake --build ./build

5. Run tests

./faker-cxx-UT

or using CTest:

ctest --test-dir ./build