• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required(VERSION 3.7)
2
3project(lwIP)
4
5set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR})
6include(src/Filelists.cmake)
7
8# Package generation
9set(CPACK_SOURCE_GENERATOR "ZIP")
10set(CPACK_SOURCE_PACKAGE_DESCRIPTION_SUMMARY "lwIP lightweight IP stack")
11set(CPACK_PACKAGE_VERSION_MAJOR "${LWIP_VERSION_MAJOR}")
12set(CPACK_PACKAGE_VERSION_MINOR "${LWIP_VERSION_MINOR}")
13set(CPACK_PACKAGE_VERSION_PATCH "${LWIP_VERSION_REVISION}")
14set(CPACK_SOURCE_IGNORE_FILES "/build/;${CPACK_SOURCE_IGNORE_FILES};.git")
15set(CPACK_SOURCE_PACKAGE_FILE_NAME "lwip-${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}")
16include(CPack)
17
18# Target for package generation
19add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
20add_dependencies(dist lwipdocs)
21