mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 00:32:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			563 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			563 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # ArduinoJson - https://arduinojson.org
 | |
| # Copyright © 2014-2023, Benoit BLANCHON
 | |
| # MIT License
 | |
| 
 | |
| cmake_minimum_required(VERSION 3.15)
 | |
| 
 | |
| if(ESP_PLATFORM)
 | |
| 	# Build ArduinoJson as an ESP-IDF component
 | |
| 	idf_component_register(INCLUDE_DIRS src)
 | |
| 	return()
 | |
| endif()
 | |
| 
 | |
| project(ArduinoJson VERSION 6.21.1)
 | |
| 
 | |
| 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()
 |