Skip to content

Commit 17e0dad

Browse files
TheKayneGamekris-jusiak
authored andcommitted
Added extra installation method for CMake Users
Added extra installation method for CMake Users this automatically installs and links all the dependencies
1 parent dffe273 commit 17e0dad

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,21 @@
227227
* Write some tests...
228228
* Compile and Run!
229229
230+
### Quick Start (CMake)
231+
* Add to your CMakeLists.txt the following lines:
232+
```
233+
include(FetchContent)
234+
FetchContent_Declare(
235+
gunit
236+
GIT_REPOSITORY https://github.com/cpp-testing/GUnit.git
237+
GIT_TAG master
238+
)
239+
FETCHCONTENT_MAKEAVAILABLE(gunit)
240+
```
241+
* Write some tests...
242+
* Compile and Run
230243
---
231-
244+
> When using the installation method as described [here](#quick-start-cmake) you may fully skip this step.
232245
* [gherkin](https://github.com/cucumber/cucumber/wiki/Gherkin) support using CMake
233246
* `gherkin-cpp` using add_subdirectory
234247
```sh

0 commit comments

Comments
 (0)