Skip to content

Commit e1779b8

Browse files
committed
docs: add vcpkg install instructions
1 parent 44f49dc commit e1779b8

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,21 @@ All APIs live in namespace `inih`. All errors are reported by throwing `std::run
7171

7272
## Install
7373

74-
Simply copy the header file `ini/ini.h` to your project, then done.
74+
### Manual
75+
76+
Simply copy the header file `ini/ini.h` to your project, then done.
77+
78+
### vcpkg
79+
80+
ini-cpp is in the [vcpkg registry](https://github.com/microsoft/vcpkg/tree/master/ports/ini-cpp):
81+
82+
```bash
83+
vcpkg install ini-cpp
84+
```
85+
86+
It is header-only, so consume it from CMake via `find_path`:
87+
88+
```cmake
89+
find_path(INI_CPP_INCLUDE_DIRS "ini/ini.h")
90+
target_include_directories(main PRIVATE ${INI_CPP_INCLUDE_DIRS})
91+
```

0 commit comments

Comments
 (0)