Skip to content

Commit

Permalink
Add README blurb to help get started
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed Jan 22, 2024
1 parent d68558d commit 9bafa98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/content/code/language-support/c-c/tools/cppgraphqlgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ description: A C++20 GraphQL schema service and client generator.
url: https://github.com/microsoft/cppgraphqlgen
github: microsoft/cppgraphqlgen
---

The easiest way to build and install `cppgraphqlgen` is to use [microsoft/vcpkg](https://github.com/microsoft/vcpkg).
See the [Getting Started](https://github.com/microsoft/vcpkg#getting-started) section of the `vcpkg` README
for details. Once you have that configured, run `vcpkg install cppgraphqlgen` (or `cppgraphqlgen:x64-windows`,
`cppgraphqlgen:x86-windows-static`, etc. depending on your platform). That will build and install all of the
dependencies for `cppgraphqlgen`, and then build `cppgraphqlgen` itself without any other setup. The `cppgraphqlgen`
package (and its dependencies) are advertised to the `CMake` `find_package` function through the
`-DCMAKE_TOOLCHAIN_FILE=<...>/scripts/buildsystems/vcpkg.cmake` parameter/variable. There are more details about
this in the `vcpkg` documentation.

0 comments on commit 9bafa98

Please sign in to comment.