CMakeLists.txt 479 B

123456789101112131415161718192021
  1. # ArduinoJson - arduinojson.org
  2. # Copyright Benoit Blanchon 2014-2019
  3. # MIT License
  4. cmake_minimum_required(VERSION 3.0)
  5. project(ArduinoJson)
  6. enable_testing()
  7. add_definitions(-DARDUINOJSON_DEBUG)
  8. if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
  9. add_compile_options(-g -O0)
  10. endif()
  11. if(${COVERAGE})
  12. set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage")
  13. endif()
  14. include_directories(${CMAKE_CURRENT_LIST_DIR}/src)
  15. add_subdirectory(extras/tests)
  16. add_subdirectory(extras/fuzzing)