uhd/host/cmake/vcpkg
Steven Koo 9aafc0ace2 uhd: enable vcpkg support on windows
vcpkg can be used for the Windows C++ dependencies for uhd with this commit.

To use vcpkg on Windows:
1) Copy the custom triplets in host/cmake/vcpkg/ to the vcpkg/triplets/ folder.
2) Install boost and libusb for the custom triplet

"vcpkg install libusb:uhd-x64-windows-static-md boost:uhd-x64-windows-static-md"

3) Call CMake with vcpkg toolchain file flags:
-DVCPKG_TARGET_TRIPLET=uhd-x64-windows-static-md
-DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALL_DIR%/scripts/buildsystems/vcpkg.cmake
-G "Visual Studio 16 2019" -A x64

Replace the -G with the installed version of Visual Studio and matching
architecture. Then build normally by running vcvarsall.bat and msbuild.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-03-19 15:40:09 -05:00
..
uhd-x64-windows-static-md.cmake uhd: enable vcpkg support on windows 2021-03-19 15:40:09 -05:00
uhd-x86-windows-static-md.cmake uhd: enable vcpkg support on windows 2021-03-19 15:40:09 -05:00