Updated on 2018-10-13
Step
D:\Work\Download\tcpdump-master>
type nul > PreLoad.cmake
echo set(CMAKE_C_STANDARD 11 CACHE INTERNAL "" FORCE) > PreLoad.cmake
echo set(CMAKE_C_STANDARD_REQUIRED ON CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_C_FLAGS "-s -Os" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_EXE_LINKER_FLAGS "-static" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo. >> PreLoad.cmake
echo set(CMAKE_GENERATOR "MinGW Makefiles" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_INSTALL_PREFIX "456" CACHE PATH "" FORCE) >> PreLoad.cmake
echo set(PCAP_INCLUDE_DIR "D:/Download/npcap-sdk/Include" CACHE PATH "" FORCE) >> PreLoad.cmake
echo set(PCAP_LIBRARY "D:/Download/npcap-sdk/Lib/x64/wpcap.lib" CACHE PATH "" FORCE) >> PreLoad.cmake
md 123 && cd 123 && cmake .. && mingw32-make && mingw32-make install