3 changed files with 29 additions and 22 deletions
@ -1,15 +0,0 @@
|
||||
set(lwipcontribportwindows_SRCS |
||||
sys_arch.c |
||||
sio.c |
||||
pcapif.c |
||||
pcapif_helper.c |
||||
) |
||||
|
||||
# pcapif needs WinPcap developer package: https://www.winpcap.org/devel.htm |
||||
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}) |
||||
@ -0,0 +1,25 @@
|
||||
# This file is indended to be included in end-user CMakeLists.txt |
||||
# include(/path/to/Filelists.cmake) |
||||
# It assumes the variable LWIP_CONTRIB_DIR is defined pointing to the |
||||
# root path of lwIP contrib sources. |
||||
# |
||||
# This file is NOT designed (on purpose) to be used as cmake |
||||
# subdir via add_subdirectory() |
||||
# The intention is to provide greater flexibility to users to |
||||
# create their own targets using the *_SRCS variables. |
||||
|
||||
set(lwipcontribportwindows_SRCS |
||||
${LWIP_CONTRIB_DIR}/ports/win32/sys_arch.c |
||||
${LWIP_CONTRIB_DIR}/ports/win32/sio.c |
||||
${LWIP_CONTRIB_DIR}/ports/win32/pcapif.c |
||||
${LWIP_CONTRIB_DIR}/ports/win32/pcapif_helper.c |
||||
) |
||||
|
||||
# pcapif needs WinPcap developer package: https://www.winpcap.org/devel.htm |
||||
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…
Reference in new issue