# How to customize install, install/local and install/strip?

**URL:** <https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934>\
**Category:** Code\
**Tags:** gen:makefiles, gen:ninja, os:linux\
**Created:** [April 2, 2020, 7:25pm UTC](https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934 "2020-04-02T19:25:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xaymar](https://discourse.cmake.org/user_avatar/discourse.cmake.org/xaymar/32/477_2.png) [@Xaymar](https://discourse.cmake.org/u/Xaymar)\
**Post date:** [April 2, 2020, 7:25pm UTC](https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934/1 "2020-04-02T19:25:18Z")

</div>

When generating projects for linux using one of the makefile generators, there are multiple install targets, all which currently do the exact same thing. How do I configure each of these to install different files, if at all possible?

---

<div class="post-metadata">

**Author:** ![kyle.edwards](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/65b543/32.png) [@kyle.edwards](https://discourse.cmake.org/u/kyle.edwards)\
**Post date:** [April 2, 2020, 8:10pm UTC](https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934/2 "2020-04-02T20:10:44Z")

</div>

It is not possible to configure `install`, `install/local`, and `install/strip` to install different files. What you probably want is install components (`Runtime`, `Development`, etc.) See the [`install()`](https://cmake.org/cmake/help/latest/command/install.html) command and the [`--install`](https://cmake.org/cmake/help/latest/manual/cmake.1.html#install-a-project) argument for information on how to use components.

---

<div class="post-metadata">

**Author:** ![Xaymar](https://discourse.cmake.org/user_avatar/discourse.cmake.org/xaymar/32/477_2.png) [@Xaymar](https://discourse.cmake.org/u/Xaymar)\
**Post date:** [April 2, 2020, 8:16pm UTC](https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934/3 "2020-04-02T20:16:13Z")

</div>

Ah that’s too bad. I guess a configure-time switch will be enough then as the local install vastly differs from a system-wide install.
