...
Most importantly, it is the FetchContent function that downloads the GoogleTesting framework when building the project. It is recommended that you use the exact same URL listed above for the purpose of this tutorial, however in future use this URL may be changed to a different version available in the googletest repository.
Therefore, the final structure of the Calculator project should look like this:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
. ├── CMakeLists.txt ├── src │ ├── CMakeLists.txt │ ├── operations.cpp │ └── operations.h └── tst ├── CMakeLists.txt ├── run_tests.cpp └── test_operations.cpp |
...