# Packaging an application

**URL:** https://discourse.cmake.org/t/packaging-an-application/3593
**Category:** Usage
**Created:** [June 18, 2021, 9:53pm UTC](https://discourse.cmake.org/t/packaging-an-application/3593 "2021-06-18T21:53:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![poseid](https://discourse.cmake.org/user_avatar/discourse.cmake.org/poseid/32/666_2.png) [@poseid](https://discourse.cmake.org/u/poseid)
#### Post date: [June 18, 2021, 9:53pm UTC](https://discourse.cmake.org/t/packaging-an-application/3593/1 "2021-06-18T21:53:45Z")

</div>

Hello,  
I am trying to install a small webclient that has a libcurl.dll depedency on Windows.  
Below is the snipped for the install instructions, but the problem is that not all dlls/deps are copied:

```auto

if(WIN32)
    if(MSVC)
        install(TARGETS ipclient
                DESTINATION bin COMPONENT binaries)
    endif(MSVC)
endif(WIN32)

```

What would be the best way to include deps in the install?  
Thanks a lot for your help!

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 20, 2021, 4:43pm UTC](https://discourse.cmake.org/t/packaging-an-application/3593/2 "2021-06-20T16:43:29Z")

</div>

The `install(TARGETS)` call doesn’t, by default, install any dependencies. You can use [`file(GET_RUNTIME_DEPENDENCIES)`](https://cmake.org/cmake/help/latest/command/file.html#get-runtime-dependencies) though. `install()` did learn to handle some things with `file(GRD)` itself, but I’m not seeing the arguments in the latest docs. @kyle.edwards is that in 3.21 or 3.22?

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [July 11, 2021, 9:57am UTC](https://discourse.cmake.org/t/packaging-an-application/3593/3 "2021-07-11T09:57:43Z")

</div>

`install(RUNTIME_DEPENDENCY_SET)` is currently part of CMake 3.21. I’ve been poking at it from a user’s perspective over the past couple of weeks, put up a few bug reports about things that aren’t working so well yet. I’m on the fence whether it is ready for this release, but depends on whether Kyle gets a chance to look at some of the issues (some are admittedly not new because they are in `file(GET_RUNTIME_DEPENDENCIES)`, but the result makes the new functionality of limited use to my eyes).
