forked from bblanchon/ArduinoJson
20 lines
438 B
CMake
20 lines
438 B
CMake
# ArduinoJson - https://arduinojson.org
|
|
# Copyright Benoit Blanchon 2014-2021
|
|
# MIT License
|
|
|
|
cmake_minimum_required(VERSION 3.3)
|
|
|
|
project(ArduinoJson VERSION 6.18.0)
|
|
|
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
|
include(CTest)
|
|
endif()
|
|
|
|
add_subdirectory(src)
|
|
|
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
|
|
include(extras/CompileOptions.cmake)
|
|
add_subdirectory(extras/tests)
|
|
add_subdirectory(extras/fuzzing)
|
|
endif()
|