mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
26 lines
616 B
CMake
26 lines
616 B
CMake
# 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 3.0)
|
|
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()
|
|
|
|
if(${SANITIZE})
|
|
set(CMAKE_CXX_FLAGS "-fsanitize=address,undefined")
|
|
endif()
|
|
|
|
add_subdirectory(test)
|