pkg-config: add module version example (#23284)

Update pkg-config.md
This commit is contained in:
Managor
2026-07-22 08:41:11 +03:00
committed by GitHub
parent 6f71a010b9
commit 5f34f9e406
+4
View File
@@ -11,6 +11,10 @@
`pkg-config --cflags --libs {{library1 library2 ...}}`
- Print the version of the linked modules:
`pkg-config --modversion {{module1 module2 ...}}`
- Compile your code with libgtk-3, libwebkit2gtk-4.0 and all their dependencies:
`c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example`