Last change
on this file since 457 was 457, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/plain;charset=UTF-8
|
File size:
1.4 KB
|
Rev | Line | |
---|
[457] | 1 | cmake_minimum_required(VERSION 3.8)
|
---|
| 2 |
|
---|
| 3 | project(example_app C)
|
---|
| 4 |
|
---|
| 5 | set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
---|
| 6 |
|
---|
| 7 | set(LWIP_CONTRIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
|
---|
| 8 | set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip)
|
---|
| 9 |
|
---|
| 10 | include(${LWIP_CONTRIB_DIR}/ports/CMakeCommon.cmake)
|
---|
| 11 |
|
---|
| 12 | set (LWIP_DEFINITIONS -DLWIP_DEBUG)
|
---|
| 13 | set (LWIP_INCLUDE_DIRS
|
---|
| 14 | "${LWIP_DIR}/src/include"
|
---|
| 15 | "${LWIP_CONTRIB_DIR}/"
|
---|
| 16 | "${LWIP_CONTRIB_DIR}/ports/win32/include"
|
---|
| 17 | "${LWIP_CONTRIB_DIR}/examples/example_app"
|
---|
| 18 | )
|
---|
| 19 |
|
---|
| 20 | include(${LWIP_DIR}/src/Filelists.cmake)
|
---|
| 21 | include(${LWIP_CONTRIB_DIR}/Filelists.cmake)
|
---|
| 22 | include(${LWIP_CONTRIB_DIR}/ports/win32/Filelists.cmake)
|
---|
| 23 |
|
---|
| 24 | add_executable(example_app ${LWIP_CONTRIB_DIR}/examples/example_app/test.c default_netif.c)
|
---|
| 25 | target_include_directories(example_app PRIVATE ${LWIP_INCLUDE_DIRS})
|
---|
| 26 | target_compile_options(example_app PRIVATE ${LWIP_COMPILER_FLAGS})
|
---|
| 27 | target_compile_definitions(example_app PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
|
---|
| 28 | target_link_libraries(example_app ${LWIP_SANITIZER_LIBS} lwipcontribexamples lwipcontribapps lwipcontribaddons lwipallapps lwipcore lwipcontribportwindows)
|
---|
| 29 |
|
---|
| 30 | add_executable(makefsdata ${lwipmakefsdata_SRCS})
|
---|
| 31 | target_compile_options(makefsdata PRIVATE ${LWIP_COMPILER_FLAGS})
|
---|
| 32 | target_include_directories(makefsdata PRIVATE ${LWIP_INCLUDE_DIRS})
|
---|
| 33 | target_link_libraries(makefsdata ${LWIP_SANITIZER_LIBS} lwipcore lwipcontribportwindows)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.