This is an example which tests forked FakeIt.
The purpose of the fork to add CMake support for FakeIt. I fork FakeIt and change the corresponding CMakeLists.txt. This project is a simple example which uses FakeIt.
Now to build this project, you must follow these steps:
- Download FakeIt.
git clone https://github.com/libenike/FakeIt.git
- Download the project.
git clone https://github.com/libenike/FakeItUsageExample.git
- Cd to FakeIt and build it.
cd FakeIt
git checkout feature/add_cmake_support
cmake -S . -B build_ -DCMAKE_INSTALL_PREFIX=install
cmake --build build_
cmake --install build_
- Cd to the project and build.
cd ../FakeItUsageExample/
cmake -S . -B build -DFakeIt_DIR=../FakeIt/install/lib/cmake/FakeIt/
cmake --build build/
As a result, this project has been built without errors.