vcpkg/docs/maintainers/vcpkg_copy_tools.md
Jack·Boos·Yu 2b20b27b0d
[docs] Fix the automatically generated document URL (#16611)
* [document] Fix the automatically generated document URL

* [docs] Format all documents
2021-03-10 11:56:07 -06:00

1.1 KiB

vcpkg_copy_tools

The latest version of this document lives in the vcpkg repo.

Copy tools and all their DLL dependencies into the tools folder.

Usage

vcpkg_copy_tools(
    TOOL_NAMES <tool1>...
    [SEARCH_DIR <${CURRENT_PACKAGES_DIR}/bin>]
    [AUTO_CLEAN]
)

Parameters

TOOL_NAMES

A list of tool filenames without extension.

SEARCH_DIR

The path to the directory containing the tools. This will be set to ${CURRENT_PACKAGES_DIR}/bin if ommited.

AUTO_CLEAN

Auto clean executables in ${CURRENT_PACKAGES_DIR}/bin and ${CURRENT_PACKAGES_DIR}/debug/bin.

Examples

Source

scripts/cmake/vcpkg_copy_tools.cmake