Created Using the library in a CMake project (markdown)

Benoît Blanchon
2016-01-13 20:59:56 +01:00
parent edf67d8125
commit a22022b289

@@ -0,0 +1,25 @@
All you need to write a `CMakeLists.txt` like this one:
```CMake
cmake_minimum_required(VERSION 2.8.12)
project(Server)
add_subdirectory(ArduinoJson/src)
add_executable(server
server.c
)
target_link_libraries(server ArduinoJson)
```
Then just call:
```shell
mkdir build
cd build
cmake ..
make
```
See issue [#188](https://github.com/bblanchon/ArduinoJson/issues/188)