mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Merge 94d687d9e5
into d0efd9ef7b
This commit is contained in:
commit
658798a9bd
@ -9,6 +9,9 @@ set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|||||||
|
|
||||||
set (LWIP_DEFINITIONS LWIP_DEBUG=1)
|
set (LWIP_DEFINITIONS LWIP_DEBUG=1)
|
||||||
|
|
||||||
|
option(LWIP_OPTION_ENABLE_EXAMPLE_APPS "Build example apps on win32/linux/darwin" ON)
|
||||||
|
|
||||||
|
if (LWIP_OPTION_ENABLE_EXAMPLE_APPS)
|
||||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||||
add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
|
add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
|
||||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||||
@ -16,6 +19,9 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "D
|
|||||||
else()
|
else()
|
||||||
message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app")
|
message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app")
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
message(STATUS "example_app build disabled")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Source package generation
|
# Source package generation
|
||||||
set(CPACK_SOURCE_GENERATOR "ZIP")
|
set(CPACK_SOURCE_GENERATOR "ZIP")
|
||||||
|
Loading…
Reference in New Issue
Block a user