Use CMake to build.
Specify BWAPI_INCLUDE_DIR and BWAPI_LIBRARY options to the bwapi include folder and .lib.
eg

mkdir build
cd build
cmake .. -DBWAPI_INCLUDE_DIR=path/to/bwapi/include -DBWAPI_LIBRARY=path/to/BWAPILIB.lib
msbuild /p:configuration=relwithdebinfo all_build.vcxproj
