VirtualBox

source: vbox/trunk/src/libs/lwip-2.2.1/CMakeLists.txt@ 109302

Last change on this file since 109302 was 109249, checked in by vboxsync, 10 days ago

libs: Add lwip-2.2.1 from the vendor branch, bugref:10899

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1cmake_minimum_required(VERSION 3.10)
2
3set (CMAKE_CONFIGURATION_TYPES "Debug;Release")
4
5project(lwIP)
6
7# Example lwIP application
8set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR})
9
10set (LWIP_DEFINITIONS LWIP_DEBUG=1)
11
12if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
13 add_subdirectory(${LWIP_DIR}/contrib/ports/win32/example_app)
14elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
15 add_subdirectory(${LWIP_DIR}/contrib/ports/unix/example_app)
16else()
17 message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app")
18endif()
19
20# Source package generation
21set(CPACK_SOURCE_GENERATOR "ZIP")
22set(CPACK_SOURCE_PACKAGE_DESCRIPTION_SUMMARY "lwIP lightweight IP stack")
23set(CPACK_PACKAGE_VERSION_MAJOR "${LWIP_VERSION_MAJOR}")
24set(CPACK_PACKAGE_VERSION_MINOR "${LWIP_VERSION_MINOR}")
25set(CPACK_PACKAGE_VERSION_PATCH "${LWIP_VERSION_REVISION}")
26set(CPACK_SOURCE_IGNORE_FILES "/build/;${CPACK_SOURCE_IGNORE_FILES};.git")
27set(CPACK_SOURCE_PACKAGE_FILE_NAME "lwip-${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}")
28include(CPack)
29
30# Generate docs before creating source package
31include(src/Filelists.cmake)
32if (NOT TARGET dist)
33 add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
34 if (TARGET lwipdocs)
35 add_dependencies(dist lwipdocs)
36 endif()
37endif()
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette