# SharedLib Deployer Deploy dlls for your exectuable, useful for redistributing your application as binaries. ## Usage ### CMake wrapper ```cmake file(DOWNLOAD https://github.com/SlopeCraft/SharedLibDeployer/releases/latest/download/DLLDeployer.cmake ${CMAKE_BINARY_DIR}/DLLDeployer.cmake) include(DLLDeployer.cmake) add_executable(your_exe ) # Deploy dlls at current binary dir DLLD_add_deploy(your_exe BUILD_MODE VERBOSE # Show detailed information ) install(TARGETS your_exe RUNTIME DESTINATION bin) # Deploy dlls at installation dir, useful when distributing binaries DLLD_add_deploy(your_exe INSTALL_MODE INSTALL_DESTINATION bin # Where you install the exe COPY_VC_REDIST # Copy Microsoft Visual C++ redistributable binaries, By default it is turned off ) ``` A detailed example is [here](./tests/CMakeLists.txt) ### Command Line Executable ```shell deploy-dll.exe C:/path/to/your/executable.exe deploy-dll.exe C:/path/to/your/shared/lib.dll ``` ```text Usage: deploy-dll.exe [OPTIONS] Arguments: The target file to deploy dll for. This can be an exe or dll Options: --skip-env-path No not search in system variable PATH --copy-vc-redist Copy Microsoft Visual C/C++ redistributable dlls --verbose Show verbose information during execution --shallow-search-dir Search for dll in those dirs --no-shallow-search Disable shallow search --deep-search-dir Search for dll recursively in those dirs --no-deep-search Disable recursive search --cmake-prefix-path CMAKE_PREFIX_PATH for cmake to search for packages --ignore Dll files that won't be deployed --objdump-file Location of dumpbin file [default: [builtin]] -h, --help Print help (see a summary with '-h') -V, --version Print version ```