if(NOT DEFINED CMAKE_SUPPRESS_DEVELOPER_WARNINGS) set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings") endif() cmake_minimum_required(VERSION 3.14) project(lwIP) set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${LWIP_DIR}/src/include ${LWIP_DIR}/src/arch_linux/include ${LWIP_DIR}/src/arch_linux/lib) include(src/Filelists.cmake) include(src/arch_linux/CMakeLists.txt) # Package generation set(CPACK_SOURCE_GENERATOR "ZIP") set(CPACK_SOURCE_PACKAGE_DESCRIPTION_SUMMARY "lwIP lightweight IP stack") set(CPACK_PACKAGE_VERSION_MAJOR "${LWIP_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${LWIP_VERSION_MINOR}") set(CPACK_PACKAGE_VERSION_PATCH "${LWIP_VERSION_REVISION}") set(CPACK_SOURCE_IGNORE_FILES "/build/;${CPACK_SOURCE_IGNORE_FILES};.git") set(CPACK_SOURCE_PACKAGE_FILE_NAME "lwip-${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}") include(CPack) # Target for package generation if (FALSE) add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source) add_dependencies(dist lwipdocs) endif()