xref: /FreeRTOS-Plus-TCP-v4.0.0/source/CMakeLists.txt (revision 67b9e1c2813792625500f9e8c091822b325f3fe7)
1add_library( freertos_plus_tcp STATIC )
2
3set_property(TARGET freertos_plus_tcp PROPERTY C_STANDARD 90)
4
5target_sources( freertos_plus_tcp
6  PRIVATE
7      include/FreeRTOSIPConfigDefaults.h
8      include/FreeRTOS_ARP.h
9      include/FreeRTOS_BitConfig.h
10      include/FreeRTOS_DHCP.h
11      include/FreeRTOS_DHCPv6.h
12      include/FreeRTOS_DNS.h
13      include/FreeRTOS_DNS_Cache.h
14      include/FreeRTOS_DNS_Callback.h
15      include/FreeRTOS_DNS_Globals.h
16      include/FreeRTOS_DNS_Networking.h
17      include/FreeRTOS_DNS_Parser.h
18      include/FreeRTOS_ICMP.h
19      include/FreeRTOS_IP.h
20      include/FreeRTOS_IP_Common.h
21      include/FreeRTOS_IP_Private.h
22      include/FreeRTOS_IP_Timers.h
23      include/FreeRTOS_IP_Utils.h
24      include/FreeRTOS_IPv4.h
25      include/FreeRTOS_IPv4_Private.h
26      include/FreeRTOS_IPv4_Sockets.h
27      include/FreeRTOS_IPv4_Utils.h
28      include/FreeRTOS_IPv6.h
29      include/FreeRTOS_IPv6_Private.h
30      include/FreeRTOS_IPv6_Sockets.h
31      include/FreeRTOS_IPv6_Utils.h
32      include/FreeRTOS_ND.h
33      include/FreeRTOS_Routing.h
34      include/FreeRTOS_Sockets.h
35      include/FreeRTOS_Stream_Buffer.h
36      include/FreeRTOS_TCP_IP.h
37      include/FreeRTOS_TCP_Reception.h
38      include/FreeRTOS_TCP_State_Handling.h
39      include/FreeRTOS_TCP_Transmission.h
40      include/FreeRTOS_TCP_Utils.h
41      include/FreeRTOS_TCP_WIN.h
42      include/FreeRTOS_UDP_IP.h
43      include/FreeRTOS_errno_TCP.h
44      include/IPTraceMacroDefaults.h
45      include/NetworkBufferManagement.h
46      include/NetworkInterface.h
47
48      FreeRTOS_ARP.c
49      FreeRTOS_BitConfig.c
50      FreeRTOS_DHCP.c
51      FreeRTOS_DHCPv6.c
52      FreeRTOS_DNS.c
53      FreeRTOS_DNS_Cache.c
54      FreeRTOS_DNS_Callback.c
55      FreeRTOS_DNS_Networking.c
56      FreeRTOS_DNS_Parser.c
57      FreeRTOS_ICMP.c
58      FreeRTOS_IP.c
59      FreeRTOS_IP_Timers.c
60      FreeRTOS_IP_Utils.c
61      FreeRTOS_IPv4.c
62      FreeRTOS_IPv4_Sockets.c
63      FreeRTOS_IPv4_Utils.c
64      FreeRTOS_IPv6.c
65      FreeRTOS_IPv6_Sockets.c
66      FreeRTOS_IPv6_Utils.c
67      FreeRTOS_ND.c
68      FreeRTOS_RA.c
69      FreeRTOS_Routing.c
70      FreeRTOS_Sockets.c
71      FreeRTOS_Stream_Buffer.c
72      FreeRTOS_TCP_IP.c
73      FreeRTOS_TCP_IP_IPv4.c
74      FreeRTOS_TCP_IP_IPv6.c
75      FreeRTOS_TCP_Reception.c
76      FreeRTOS_TCP_State_Handling.c
77      FreeRTOS_TCP_State_Handling_IPv4.c
78      FreeRTOS_TCP_State_Handling_IPv6.c
79      FreeRTOS_TCP_Transmission.c
80      FreeRTOS_TCP_Transmission_IPv4.c
81      FreeRTOS_TCP_Transmission_IPv6.c
82      FreeRTOS_TCP_Utils.c
83      FreeRTOS_TCP_Utils_IPv4.c
84      FreeRTOS_TCP_Utils_IPv6.c
85      FreeRTOS_TCP_WIN.c
86      FreeRTOS_Tiny_TCP.c
87      FreeRTOS_UDP_IP.c
88      FreeRTOS_UDP_IPv4.c
89      FreeRTOS_UDP_IPv6.c
90)
91
92# Note: Have to make system due to compiler warnings in header files.
93target_include_directories( freertos_plus_tcp SYSTEM
94  PUBLIC
95    include
96)
97
98target_link_libraries( freertos_plus_tcp
99  PUBLIC
100    freertos_config
101    freertos_plus_tcp_port # for pack_struct_start.h
102  PRIVATE
103    freertos_kernel
104    freertos_plus_tcp_network_if
105    freertos_plus_tcp_utilities
106)
107
108add_subdirectory(portable)
109