vcpkg help
, or vcpkg help [command]
for command-specific help.C:srcvcpkg
or C:devvcpkg
,since otherwise you may run into path issues for some port build systems.search
subcommand:#include
'd and usedin your project without additional configuration.find_package
and the like to use the libraries.Check out the CMake section for more information,including on using CMake with an IDE.search
subcommand:find_package
and the like to use the libraries.Check out the CMake sectionfor more information on how best to use vcpkg with CMake,and CMake Tools for VSCode.settings.json
will makeCMake Tools automatically use vcpkg for libraries:CMake toolchain file
,add the path to the vcpkg toolchain file:CMake options
, add the following line:project()
call,instead of passing CMAKE_TOOLCHAIN_FILE
to the cmake invocation.CMAKE_TOOLCHAIN_FILE
directly,but it will make the configure-build step slightly easier.vcpkg
supports auto-completion of commands, package names,and options in both powershell and bash.To enable tab-completion in the shell of your choice, run: