mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
24 lines
1.1 KiB
CMake
24 lines
1.1 KiB
CMake
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
|
|
|
set (LWIP_INCLUDE_DIRS
|
|
"${LWIP_DIR}/src/include"
|
|
"${LWIP_DIR}/contrib/"
|
|
"${LWIP_DIR}/contrib/ports/unix/port/include"
|
|
"${LWIP_DIR}/contrib/examples/example_app"
|
|
)
|
|
|
|
include(${LWIP_DIR}/src/Filelists.cmake)
|
|
include(${LWIP_DIR}/contrib/Filelists.cmake)
|
|
include(${LWIP_DIR}/contrib/ports/unix/Filelists.cmake)
|
|
|
|
add_executable(example_app ${LWIP_DIR}/contrib/examples/example_app/test.c default_netif.c)
|
|
target_include_directories(example_app PRIVATE ${LWIP_INCLUDE_DIRS})
|
|
target_compile_options(example_app PRIVATE ${LWIP_COMPILER_FLAGS})
|
|
target_compile_definitions(example_app PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
|
|
target_link_libraries(example_app ${LWIP_SANITIZER_LIBS} lwipcontribexamples lwipcontribapps lwipcontribaddons lwipallapps lwipcontribportunix lwipcore lwipmbedtls)
|
|
|
|
add_executable(makefsdata ${lwipmakefsdata_SRCS})
|
|
target_compile_options(makefsdata PRIVATE ${LWIP_COMPILER_FLAGS})
|
|
target_include_directories(makefsdata PRIVATE ${LWIP_INCLUDE_DIRS})
|
|
target_link_libraries(makefsdata ${LWIP_SANITIZER_LIBS})
|