Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@ the implementation of a simple filesystem event watcher for the commandline.

## Usage ##

### git submodule approach ###

```bash
sudo apt install libboost-dev
sudo apt install libboost-test-dev
cd thirdparty
git submodule add https://github.com/erikzenker/inotify-cpp
```

```cmake
macro(set_option option value)
set(${option} ${value} CACHE INTERNAL "" FORCE)
endmacro()
set_option(BUILD_EXAMPLE OFF)
set_option(BUILD_TEST OFF)
set_option(BUILD_SHARED_LIBS OFF)
set_option(BUILD_STATIC_LIBS ON)
add_subdirectory(thirdparty/inotify-cpp)

add_executable(my-app)
target_link_libraries(my-app PRIVATE inotify-cpp-static)
```

```c++
#include <inotify-cpp/NotifierBuilder.h>

Expand Down