source: azure_iot_hub_f767zi/trunk/asp_baseplatform/lwip/contrib-2.1.0/Filelists.cmake@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

File size: 3.0 KB
Line 
1# This file is indended to be included in end-user CMakeLists.txt
2# include(/path/to/Filelists.cmake)
3# It assumes the variable LWIP_CONTRIB_DIR is defined pointing to the
4# root path of lwIP contrib sources.
5#
6# This file is NOT designed (on purpose) to be used as cmake
7# subdir via add_subdirectory()
8# The intention is to provide greater flexibility to users to
9# create their own targets using the *_SRCS variables.
10
11set(lwipcontribexamples_SRCS
12 ${LWIP_CONTRIB_DIR}/examples/httpd/fs_example/fs_example.c
13 ${LWIP_CONTRIB_DIR}/examples/httpd/ssi_example/ssi_example.c
14 ${LWIP_CONTRIB_DIR}/examples/lwiperf/lwiperf_example.c
15 ${LWIP_CONTRIB_DIR}/examples/mdns/mdns_example.c
16 ${LWIP_CONTRIB_DIR}/examples/mqtt/mqtt_example.c
17 ${LWIP_CONTRIB_DIR}/examples/ppp/pppos_example.c
18 ${LWIP_CONTRIB_DIR}/examples/snmp/snmp_private_mib/lwip_prvmib.c
19 ${LWIP_CONTRIB_DIR}/examples/snmp/snmp_v3/snmpv3_dummy.c
20 ${LWIP_CONTRIB_DIR}/examples/snmp/snmp_example.c
21 ${LWIP_CONTRIB_DIR}/examples/sntp/sntp_example.c
22 ${LWIP_CONTRIB_DIR}/examples/tftp/tftp_example.c
23)
24add_library(lwipcontribexamples EXCLUDE_FROM_ALL ${lwipcontribexamples_SRCS})
25target_compile_options(lwipcontribexamples PRIVATE ${LWIP_COMPILER_FLAGS})
26target_compile_definitions(lwipcontribexamples PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
27target_include_directories(lwipcontribexamples PRIVATE ${LWIP_INCLUDE_DIRS} ${LWIP_MBEDTLS_INCLUDE_DIRS})
28
29set(lwipcontribapps_SRCS
30 ${LWIP_CONTRIB_DIR}/apps/httpserver/httpserver-netconn.c
31 ${LWIP_CONTRIB_DIR}/apps/chargen/chargen.c
32 ${LWIP_CONTRIB_DIR}/apps/udpecho/udpecho.c
33 ${LWIP_CONTRIB_DIR}/apps/tcpecho/tcpecho.c
34 ${LWIP_CONTRIB_DIR}/apps/shell/shell.c
35 ${LWIP_CONTRIB_DIR}/apps/udpecho_raw/udpecho_raw.c
36 ${LWIP_CONTRIB_DIR}/apps/tcpecho_raw/tcpecho_raw.c
37 ${LWIP_CONTRIB_DIR}/apps/netio/netio.c
38 ${LWIP_CONTRIB_DIR}/apps/ping/ping.c
39 ${LWIP_CONTRIB_DIR}/apps/socket_examples/socket_examples.c
40 ${LWIP_CONTRIB_DIR}/apps/rtp/rtp.c
41)
42add_library(lwipcontribapps EXCLUDE_FROM_ALL ${lwipcontribapps_SRCS})
43target_compile_options(lwipcontribapps PRIVATE ${LWIP_COMPILER_FLAGS})
44target_compile_definitions(lwipcontribapps PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
45target_include_directories(lwipcontribapps PRIVATE ${LWIP_INCLUDE_DIRS} ${LWIP_MBEDTLS_INCLUDE_DIRS})
46
47set(lwipcontribaddons_SRCS
48 ${LWIP_CONTRIB_DIR}/addons/tcp_isn/tcp_isn.c
49 ${LWIP_CONTRIB_DIR}/addons/ipv6_static_routing/ip6_route_table.c
50# ${LWIP_CONTRIB_DIR}/addons/netconn/external_resolve/dnssd.c
51# ${LWIP_CONTRIB_DIR}/addons/tcp_md5/tcp_md5.c
52)
53add_library(lwipcontribaddons EXCLUDE_FROM_ALL ${lwipcontribaddons_SRCS})
54target_compile_options(lwipcontribaddons PRIVATE ${LWIP_COMPILER_FLAGS})
55target_compile_definitions(lwipcontribaddons PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
56target_include_directories(lwipcontribaddons PRIVATE ${LWIP_INCLUDE_DIRS} ${LWIP_MBEDTLS_INCLUDE_DIRS})
Note: See TracBrowser for help on using the repository browser.