forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (31 loc) · 788 Bytes
/
CMakeLists.txt
File metadata and controls
36 lines (31 loc) · 788 Bytes
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
# Copyright (c) 2020 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_subdirectory(tests/TESTS)
else()
add_subdirectory(tests/UNITTESTS)
endif()
endif()
target_include_directories(mbed-core
INTERFACE
.
./include
./include/rtos
./include/rtos/internal
./source
)
target_sources(mbed-core
INTERFACE
source/EventFlags.cpp
source/Kernel.cpp
source/Mutex.cpp
source/Semaphore.cpp
source/ThisThread.cpp
source/ConditionVariable.cpp
source/Thread.cpp
)
target_compile_definitions(mbed-core
INTERFACE
MBED_CONF_RTOS_API_PRESENT=1
)