List interfaces:
toggle-nic --list
Disable interface #11:
toggle-nic 11 --disable
Enable interface #11:
toggle-nic 11 --enable
-
Launch Visual Studio and open the repository, the IDE will automatically detect the CMake project.
-
Build the project.
- Open a command prompt window inside the repository, with the MSVC environment initialized.
You can do that by opening one of the
Tools Command Prompt for VS
shortcuts under the Visual Studio folder in the Start menu. The shortcuts point to the.bat
files that can be found inVC/Auxiliary/Build
, inside the Visual Studio installation directory. You can also open a "clean" command prompt window and run one of the scripts (depending on the architecture you want to build the project for). For example, if you want to build a 64 bit binary and have Visual Studio 2019 Community, you would have to run:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
The path differs if you have a different Visual Studio version (e.g. Professional) or if you changed it during the installation.
- Create a working directory for CMake and enter it:
mkdir build && cd build
- Run CMake with the
NMake Makefiles
generator (otherwise it generates a Visual Studio solution):
cmake -G "NMake Makefiles" ..
- Build:
nmake
-
Open either
MSYS2 MinGW 32-bit
orMSYS2 MinGW 64-bit
and go inside the repository. -
Create a working directory for CMake and enter it:
mkdir build && cd build
- Run CMake:
cmake -G "MSYS Makefiles" ..
- Build:
mingw32-make