Files
ArduinoJson/CMakeLists.txt
T

25 lines
562 B
CMake
Raw Normal View History

# ArduinoJson - https://arduinojson.org
2024-01-03 08:47:06 +01:00
# Copyright © 2014-2024, Benoit BLANCHON
2016-01-07 22:35:12 +01:00
# MIT License
2021-12-29 10:51:30 +01:00
cmake_minimum_required(VERSION 3.15)
if(ESP_PLATFORM)
2023-02-09 10:00:38 +01:00
# Build ArduinoJson as an ESP-IDF component
idf_component_register(INCLUDE_DIRS src)
return()
endif()
2024-11-15 09:05:29 +01:00
project(ArduinoJson VERSION 7.2.1)
2014-10-14 09:51:23 +02:00
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
2023-02-09 10:00:38 +01:00
include(CTest)
2018-11-12 18:28:34 +01:00
endif()
2020-04-07 21:43:10 +02:00
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()