-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathCMakeLists.txt
52 lines (42 loc) · 970 Bytes
/
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
42
43
44
45
46
47
48
49
50
51
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...>
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects
cmake_minimum_required(VERSION 3.21)
add_library(core INTERFACE)
add_library(core_usage INTERFACE)
target_include_directories(core_usage INTERFACE
.
)
target_link_libraries(core_usage INTERFACE
base_config
)
target_link_libraries(core INTERFACE core_usage)
add_library(core_bin STATIC EXCLUDE_FROM_ALL
abi.cpp
avr/dtostrf.c
board.c
core_debug.c
HardwareSerial.cpp
hooks.c
IPAddress.cpp
itoa.c
main.cpp
pins_arduino.c
Print.cpp
RingBuffer.cpp
stm32/startup_stm32yyxx.S
Stream.cpp
Tone.cpp
WInterrupts.cpp
wiring_analog.c
wiring_digital.c
wiring_pulse.cpp
wiring_shift.c
wiring_time.c
WMath.cpp
WSerial.cpp
WString.cpp
)
target_link_libraries(core_bin PUBLIC core_usage)
target_link_libraries(core INTERFACE
core_bin
)