Browse Source

Work on CMake build system - prevent building MBEDTLS applications and minor cleanups

master
Dirk Ziegelmeier 8 years ago
parent
commit
b88b65f6d4
  1. 5
      ports/CMakeCommon.cmake
  2. 7
      ports/win32/CMakeLists.txt

5
ports/CMakeCommon.cmake

@ -19,11 +19,10 @@ endif()
# ARM mbedtls support https://tls.mbed.org/
set(MBEDTLSDIR ${LWIP_CONTRIB_DIR}/../mbedtls)
if(EXISTS ${MBEDTLSDIR}/include/mbedtls/ssl.h)
add_subdirectory(${LWIP_CONTRIB_DIR}/../mbedtls mbedtls)
set(ENABLE_PROGRAMS OFF CACHE BOOL "Prevent building MBEDTLS programs")
add_subdirectory(${LWIP_CONTRIB_DIR}/../mbedtls mbedtls)
add_definitions(-DLWIP_HAVE_MBEDTLS=1)
include_directories(${MBEDTLSDIR}/include)
link_libraries(mbedtls mbedcrypto mbedx509)
endif()

7
ports/win32/CMakeLists.txt

@ -6,9 +6,10 @@ set(lwipcontribportwindows_SRCS
)
# pcapif needs WinPcap developer package: https://www.winpcap.org/devel.htm
find_library(WPCAP wpcap HINTS ${LWIP_CONTRIB_DIR}/../WpdPack/lib)
find_library(PACKET packet HINTS ${LWIP_CONTRIB_DIR}/../WpdPack/lib)
include_directories("${LWIP_CONTRIB_DIR}/../WpdPack/include")
set(WPDPACK_DIR ${LWIP_CONTRIB_DIR}/../WpdPack)
find_library(WPCAP wpcap HINTS ${WPDPACK_DIR}/lib)
find_library(PACKET packet HINTS ${WPDPACK_DIR}/lib)
include_directories("${WPDPACK_DIR}/include")
link_libraries(${WPCAP} ${PACKET})
add_library(lwipcontribportwindows EXCLUDE_FROM_ALL ${lwipcontribportwindows_SRCS})

Loading…
Cancel
Save