17 lines
361 B
CMake
17 lines
361 B
CMake
include(FetchContent)
|
|
|
|
set(FETCHCONTENT_QUIET TRUE)
|
|
|
|
set(LIBPCAP_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
set(LIBPCAP_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
|
|
|
FetchContent_Declare(
|
|
libpcap
|
|
GIT_REPOSITORY https://github.com/the-tcpdump-group/libpcap.git
|
|
GIT_TAG libpcap-1.10.5
|
|
GIT_SHALLOW TRUE
|
|
OVERRIDE_FIND_PACKAGE)
|
|
|
|
FetchContent_MakeAvailable(libpcap)
|
|
|