Skip to content

Commit 901cae1

Browse files
authored
Merge pull request #73 from erikzenker/feature/erikzenker/fix-example-build-instructions
Fix: Update example build instructions
2 parents af9855d + 610d5b7 commit 901cae1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,25 @@ int main(int argc, char** argv)
7171
}
7272
```
7373
74-
## Build Library ##
74+
## Build and Install Library ##
7575
```bash
7676
mkdir build; cd bulid
77-
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
77+
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
7878
cmake --build .
7979
8080
# run tests
8181
ctest -VV
8282
8383
# install the library
84-
make install
84+
cmake --build . --target install
8585
```
8686

8787
## Build Example ##
88-
Build and install the library before you run the following commands:
8988
```bash
9089
mkdir build; cd build
91-
cmake ../example
92-
cmake --build inotify_example
93-
./inotify_example
90+
cmake ..
91+
cmake --build . --target inotify_example
92+
./example/inotify_example
9493
```
9594

9695
## Install from Packet ##

0 commit comments

Comments
 (0)