diff --git a/Using-the-library-in-a-CMake-project.md b/Using-the-library-in-a-CMake-project.md new file mode 100644 index 0000000..72dd7c4 --- /dev/null +++ b/Using-the-library-in-a-CMake-project.md @@ -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) \ No newline at end of file