-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (45 loc) · 1.18 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# CMake build script for staticnet
# Intended to be integrated into a larger project, not built standalone.
if(BUILD_APB_LIBS)
set(APB_SOURCES
drivers/apb/APBEthernetInterface.cpp)
else()
set(APB_SOURCES
)
endif()
add_library(staticnet STATIC
cli/SSHOutputStream.cpp
contrib/base64.cpp
contrib/tweetnacl_25519.cpp
crypt/CryptoEngine.cpp
dhcp/DHCPClient.cpp
dhcp/DHCPPacket.cpp
${APB_SOURCES}
drivers/base/EthernetInterface.cpp
drivers/stm32/STM32CryptoEngine.cpp
# todo: proper selection of others
net/arp/ARPCache.cpp
net/arp/ARPPacket.cpp
net/arp/ARPProtocol.cpp
net/ethernet/EthernetFrame.cpp
net/ethernet/EthernetProtocol.cpp
net/icmpv4/ICMPv4Protocol.cpp
net/ipv4/IPv4Packet.cpp
net/ipv4/IPv4Protocol.cpp
net/tcp/TCPProtocol.cpp
net/tcp/TCPSegment.cpp
net/udp/UDPPacket.cpp
net/udp/UDPProtocol.cpp
ntp/NTPClient.cpp
sftp/SFTPServer.cpp
ssh/SSHCurve25519KeyBlob.cpp
ssh/SSHCurve25519SignatureBlob.cpp
ssh/SSHKexEcdhReplyPacket.cpp
ssh/SSHKexInitPacket.cpp
ssh/SSHTransportPacket.cpp
ssh/SSHTransportServer.cpp
)
target_include_directories(staticnet
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
"$<TARGET_PROPERTY:stm32-cpp,INTERFACE_INCLUDE_DIRECTORIES>"
)