From 849f14083a08e1c8bcba1fe4bba94683a333e77b Mon Sep 17 00:00:00 2001 From: Hannes Steffenhagen Date: Sat, 8 Feb 2020 13:11:11 +0000 Subject: [PATCH] Add a note on CMake usage of exported target to the README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 183553f..bc43251 100644 --- a/README.md +++ b/README.md @@ -95,5 +95,14 @@ Include the library using: #include +## Usage in CMake + +The library provides a Config file for CMake, once installed it can be found via + + find_package(Microsoft.GSL CONFIG) + +Which, when successful, will add library target called `Microsoft.GSL::GSL` which you can use via the usual +`target_link_libraries` mechanism. + ## Debugging visualization support For Visual Studio users, the file [GSL.natvis](./GSL.natvis) in the root directory of the repository can be added to your project if you would like more helpful visualization of GSL types in the Visual Studio debugger than would be offered by default.