Files
ArduinoJson/CMakeLists.txt

22 lines
536 B
CMake
Raw Normal View History

# Copyright Benoit Blanchon 2014-2017
# MIT License
#
# Arduino JSON library
2017-03-25 22:05:06 +01:00
# https://bblanchon.github.io/ArduinoJson/
# If you like this project, please add a star!
cmake_minimum_required(VERSION 3.0)
2014-10-14 09:51:23 +02:00
project(ArduinoJson)
2014-10-14 10:01:46 +02:00
enable_testing()
2014-10-14 09:51:23 +02:00
2014-10-16 21:29:59 +02:00
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)
2014-11-30 15:11:19 +01:00
if(${COVERAGE})
set(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
2014-11-30 15:11:19 +01:00
endif()
add_subdirectory(test)