From 9aafc0ace2272746d708dcac6e5daaa50b7da4c7 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Wed, 10 Mar 2021 12:21:33 -0600 Subject: 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 --- host/utils/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'host/utils') diff --git a/host/utils/CMakeLists.txt b/host/utils/CMakeLists.txt index 4bbcd252b..ab7d645f4 100644 --- a/host/utils/CMakeLists.txt +++ b/host/utils/CMakeLists.txt @@ -53,6 +53,7 @@ set(util_share_sources_py uhd_power_cal.py ) if(ENABLE_USB) + find_package(LIBUSB) list(APPEND util_share_sources fx2_init_eeprom.cpp ) -- cgit v1.2.3