# Copyright Benoit Blanchon 2014-2016 # MIT License # # Arduino JSON library # https://github.com/bblanchon/ArduinoJson # If you like this project, please add a star! cmake_minimum_required(VERSION 2.8.12) project(ArduinoJson) enable_testing() set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) if(${COVERAGE}) set(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") endif() add_subdirectory(src) add_subdirectory(test)