Skip to content

Commit 1cfddbf

Browse files
README: add CMake mention
1 parent 99154ee commit 1cfddbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ header at the beginning of your program:
172172
...
173173
```
174174

175+
For [CMake](https://cmake.org/)-based projects you can do the following to find
176+
the library and link with it:
177+
178+
```cmake
179+
find_package(pgm_args REQUIRED)
180+
...
181+
target_link_libraries(my_project PRIVATE pgm::args)
182+
```
183+
175184
---
176185

177186
### :two: Define Options and Positional Parameters

0 commit comments

Comments
 (0)