Skip to content

Demonstrating how to use CMake's FetchContent to manage C++ dependencies

License

Notifications You must be signed in to change notification settings

bewagner/fetchContent_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FetchContent example

Build

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.

Dependencies

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.

Building and running

Run the following

mkdir build 
cd build
cmake ..
cmake --build .
./fetchContent_example

About

Demonstrating how to use CMake's FetchContent to manage C++ dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published