# How to share common cmake properties between exes?

**URL:** https://discourse.cmake.org/t/how-to-share-common-cmake-properties-between-exes/1120
**Category:** Code
**Created:** [April 28, 2020, 11:55pm UTC](https://discourse.cmake.org/t/how-to-share-common-cmake-properties-between-exes/1120 "2020-04-28T23:55:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Greg](https://discourse.cmake.org/user_avatar/discourse.cmake.org/greg/32/565_2.png) [@Greg](https://discourse.cmake.org/u/Greg)
#### Post date: [April 29, 2020, 1:21am UTC](https://discourse.cmake.org/t/how-to-share-common-cmake-properties-between-exes/1120/3 "2020-04-29T01:21:29Z")

</div>

Thanks Ben, this makes me feel better about our existing approach. I know just enough about “modern CMake” to feel that the add\_daemon\_executable wrapper isn’t the pure, clean way to do things, but I don’t know enough to suggest a better solution.

Someone much wiser than I privately recommended appending to the target, and not wrapping add\_executable, so

add\_executable(target, usual options)  
mark\_executable\_daemon(target)

I think I like this approach better, even if it is a bit more verbose.

---

_[View the full topic](https://discourse.cmake.org/t/how-to-share-common-cmake-properties-between-exes/1120)._
