diff --git a/README.md b/README.md index a27e68c..ab0dcc2 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ and they will be fixed as they are reported. Subprocess library has just a single source `subprocess.hpp` present at the top directory of this repository. All you need to do is add ```cpp -#inlcude "cpp-subprocess/subprocess.hpp" +#include "cpp-subprocess/subprocess.hpp" using namespace subprocess; // OR @@ -33,6 +33,20 @@ to the files where you want to make use of subprocessing. Make sure to add neces Checkout http://templated-thoughts.blogspot.in/2016/03/sub-processing-with-modern-c.html as well. +## CMake Projects + +```cmake +include(FetchContent) +FetchContent_Declare( + cpp-subprocess + GIT_REPOSITORY https://github.com/arun11299/cpp-subprocess.git + GIT_TAG v2.2 +) +FetchContent_MakeAvailable(cpp-subprocess) + +target_link_libraries( PRIVATE cpp-subprocess::subprocess) +``` + ## Compiler Support Linux - g++ 4.8 and above Mac OS - Clang 3.4 and later