# Installing headers the modern way

**URL:** <https://discourse.cmake.org/t/installing-headers-the-modern-way/2934>\
**Category:** Code\
**Created:** [March 10, 2021, 3:46pm UTC](https://discourse.cmake.org/t/installing-headers-the-modern-way/2934 "2021-03-10T15:46:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Braden](https://discourse.cmake.org/user_avatar/discourse.cmake.org/braden/32/358_2.png) [@Braden](https://discourse.cmake.org/u/Braden)\
**Post date:** [April 30, 2021, 12:57pm UTC](https://discourse.cmake.org/t/installing-headers-the-modern-way/2934/6 "2021-04-30T12:57:31Z")

</div>

> [@Kerstin\_Keller](#):
>
> Does the way you described work for you? Also when exporting / installing the targets? Which CMake Version are you using?

Please refer to my more recent posting, [Installing headers the modern way, regurgitated and revisited](https://discourse.cmake.org/t/installing-headers-the-modern-way-regurgitated-and-revisited/3238).

The method described there does work. It is not pretty. I am using CMake 3.19.

---

_[View the full topic](https://discourse.cmake.org/t/installing-headers-the-modern-way/2934)._
