mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 05:49:01 +08:00
0ab1a9e1c6
* [vcpkg] Add new function vcpkg_copy_tools * [cpuinfo][czmq][nanomsg][uriparser] Use vcpkg_copy_tools * [czmq] Clean even tools are not copied [libsvm][zyre] Use vcpkg_copy_tools * [vcpkg-copy-tools] Clean debug/bin This should fix czmq build error * [czmq] czmq does not have BUILD_TOOLS option * [vcpkg] Split clean logic into another function * [cpuinfo][czmq][nanomsg][uriparser] Fix calling of vcpkg_copy_tools * [zyre] Fix regression error * [vcpkg] Update try_remove_empty_directory * [libsvm] Fix vcpkg_copy_tools call
31 lines
953 B
Markdown
31 lines
953 B
Markdown
# vcpkg_copy_tools
|
|
|
|
Copy tools and all their DLL dependencies into the `tools` folder.
|
|
|
|
## Usage
|
|
```cmake
|
|
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
|
|
|
|
* [cpuinfo](https://github.com/microsoft/vcpkg/blob/master/ports/cpuinfo/portfile.cmake)
|
|
* [nanomsg](https://github.com/microsoft/vcpkg/blob/master/ports/nanomsg/portfile.cmake)
|
|
* [uriparser](https://github.com/microsoft/vcpkg/blob/master/ports/uriparser/portfile.cmake)
|
|
|
|
## Source
|
|
[scripts/cmake/vcpkg_copy_tools.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_copy_tools.cmake)
|