Cmake compiled under Windows libtins (with boost library)

1. GUI setting (Boost nonstandard installation)

Click Add Entry, New BOOST_ROOT (path) and BOOST_NO_SYSTEM_PATHS (value)

 

2. Command Line

cmake -G "Visual Studio 14 2015" ../ -DPCAP_ROOT_DIR=D:\Libraries\npcap-sdk-1.03 -DBOOST_ROOT=D:\Libraries\boost_1_70_0 -DBoost_USE_STATIC_LIBS=ON -DLIBTINS_ENABLE_WPA2=0 -DLIBTINS_BUILD_SHARED=0 -DLIBTINS_ENABLE_CXX11=1

-G "Visual Studio 14 2015" ## designated compiler environment

## boost library configuration

-DBOOST_ROOT=

-DBoost_USE_STATIC_LIBS=ON

 

 

Guess you like

Origin www.cnblogs.com/songweiren/p/11229114.html