forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (35 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
if(BUILD_GREENTEA_TESTS)
# add greentea test
else()
add_subdirectory(tests/UNITTESTS)
endif()
endif()
add_subdirectory(TARGET_FLASH_CMSIS_ALGO EXCLUDE_FROM_ALL)
add_subdirectory(usb)
target_include_directories(mbed-core
INTERFACE
include
include/hal
)
target_sources(mbed-core
INTERFACE
source/LowPowerTickerWrapper.cpp
source/mbed_compat.c
source/mbed_critical_section_api.c
source/mbed_flash_api.c
source/mbed_gpio.c
source/mbed_gpio_irq.c
source/mbed_itm_api.c
source/mbed_lp_ticker_api.c
source/mbed_lp_ticker_wrapper.cpp
source/mbed_pinmap_common.c
source/mbed_pinmap_default.cpp
source/mbed_ticker_api.c
source/mbed_us_ticker_api.c
source/static_pinmap.cpp
source/mpu/mbed_mpu_v7m.c
source/mpu/mbed_mpu_v8m.c
)