Demonstration of how to use CMake's FetchContent
to manage C++ dependencies.
Check out my blog post about FetchContent
!
The application builds a sample program that makes use of doctest and range-v3.
Make sure you have CMake >= 3.14 installed.
If you have an older version, you can run install_cmake.sh
to install the newest version.
You can also have a look at the install
step in .travis.yml
to see how to download a prebuilt version of CMake 3.17.
Run the following
mkdir build
cd build
cmake ..
cmake --build .
./fetchContent_example