mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Continue workin on CMake build system
Split lwip lib into lwIP core and lwIP apps Compile makefsdata only when NOT cross-compiling
This commit is contained in:
parent
c61a0570b1
commit
ad8e08a08b
@ -283,6 +283,10 @@ if(LWIP_CONFIGURE_FILES)
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/lwip/init.h)
|
${CMAKE_CURRENT_SOURCE_DIR}/include/lwip/init.h)
|
||||||
endif(LWIP_CONFIGURE_FILES)
|
endif(LWIP_CONFIGURE_FILES)
|
||||||
|
|
||||||
add_library(lwip EXCLUDE_FROM_ALL ${lwipnoapps_SRCS} ${lwipallapps_SRCS})
|
add_library(lwipcore EXCLUDE_FROM_ALL ${lwipnoapps_SRCS})
|
||||||
|
|
||||||
add_executable(makefsdata EXCLUDE_FROM_ALL ${lwipmakefsdata_SRCS})
|
add_library(lwipapps EXCLUDE_FROM_ALL ${lwipallapps_SRCS})
|
||||||
|
|
||||||
|
if (NOT CMAKE_CROSSCOMPILING)
|
||||||
|
add_executable(makefsdata ${lwipmakefsdata_SRCS})
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user