This project contains a program written in C that uses the memoization method to find the Fibonacci sequence. The project is built with CMake, and unit tests are written with Google Test.
To build the project, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/fibonacci.git cd fibonacci
-
Create a build directory and navigate into it:
mkdir build cd build
-
Run CMake to configure the project:
cmake ..
-
Build the project:
make
To run the unit tests, execute the following command in the build directory:
ctest
To run the Fibonacci program, execute the following command in the build directory:
./Fibonacci