# StreamUtils - github.com/bblanchon/ArduinoStreamUtils
# Copyright Benoit Blanchon 2019-2024
# MIT License

add_library(Stm32F4Core INTERFACE)

target_include_directories(Stm32F4Core
	INTERFACE
		${CMAKE_CURRENT_SOURCE_DIR}
		${CMAKE_CURRENT_SOURCE_DIR}/../stm32f1
		${CMAKE_CURRENT_SOURCE_DIR}/../avr
)

target_compile_definitions(Stm32F4Core
	INTERFACE
		ARDUINO_ARCH_STM32F4
)

target_compile_options(Stm32F4Core
	INTERFACE
		-Wno-overloaded-virtual
)

add_streamutils_test(StreamUtilsTestStm32F4 Stm32F4Core)
