2020-08-05 12:43:01 +00:00
|
|
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
2020-07-20 16:54:20 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-04-07 16:58:32 +00:00
|
|
|
if(NOT ${CMAKE_CROSSCOMPILING})
|
|
|
|
add_subdirectory(tests/UNITTESTS)
|
|
|
|
endif()
|
|
|
|
|
2020-10-22 16:00:21 +00:00
|
|
|
target_include_directories(mbed-core
|
2020-10-26 16:13:36 +00:00
|
|
|
INTERFACE
|
2020-10-12 11:35:19 +00:00
|
|
|
.
|
|
|
|
./include
|
|
|
|
./include/drivers
|
|
|
|
./include/drivers/internal
|
2020-08-05 12:43:01 +00:00
|
|
|
)
|
|
|
|
|
2020-10-22 16:00:21 +00:00
|
|
|
target_sources(mbed-core
|
2020-10-26 16:13:36 +00:00
|
|
|
INTERFACE
|
2020-07-20 16:54:20 +00:00
|
|
|
source/AnalogIn.cpp
|
|
|
|
source/AnalogOut.cpp
|
|
|
|
source/BufferedSerial.cpp
|
|
|
|
source/BusIn.cpp
|
|
|
|
source/BusInOut.cpp
|
|
|
|
source/BusOut.cpp
|
|
|
|
source/CAN.cpp
|
|
|
|
source/DigitalIn.cpp
|
|
|
|
source/DigitalInOut.cpp
|
|
|
|
source/DigitalOut.cpp
|
|
|
|
source/FlashIAP.cpp
|
|
|
|
source/I2C.cpp
|
|
|
|
source/I2CSlave.cpp
|
|
|
|
source/InterruptIn.cpp
|
|
|
|
source/MbedCRC.cpp
|
|
|
|
source/PortIn.cpp
|
|
|
|
source/PortInOut.cpp
|
|
|
|
source/PortOut.cpp
|
|
|
|
source/PwmOut.cpp
|
|
|
|
source/QSPI.cpp
|
|
|
|
source/ResetReason.cpp
|
|
|
|
source/SPI.cpp
|
|
|
|
source/SPISlave.cpp
|
2020-08-05 12:43:01 +00:00
|
|
|
source/SerialBase.cpp
|
|
|
|
source/SerialWireOutput.cpp
|
2020-07-20 16:54:20 +00:00
|
|
|
source/Ticker.cpp
|
|
|
|
source/Timeout.cpp
|
|
|
|
source/Timer.cpp
|
|
|
|
source/TimerEvent.cpp
|
|
|
|
source/UnbufferedSerial.cpp
|
|
|
|
source/Watchdog.cpp
|
|
|
|
)
|
2020-10-12 11:35:19 +00:00
|
|
|
|