# How to add\_executable(targetB MACOSX\_BUNDLE targetB.cc targetA) ?

**URL:** https://discourse.cmake.org/t/how-to-add-executable-targetb-macosx-bundle-targetb-cc-targeta/2482
**Category:** Code
**Created:** [January 5, 2021, 7:34pm UTC](https://discourse.cmake.org/t/how-to-add-executable-targetb-macosx-bundle-targetb-cc-targeta/2482 "2021-01-05T19:34:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mrmsdbdl](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mrmsdbdl/32/2686_2.png) [@mrmsdbdl](https://discourse.cmake.org/u/mrmsdbdl)
#### Post date: [October 29, 2021, 9:18am UTC](https://discourse.cmake.org/t/how-to-add-executable-targetb-macosx-bundle-targetb-cc-targeta/2482/3 "2021-10-29T09:18:26Z")

</div>

If I may jump in here for a sec. This is very similar to my question [here](https://discourse.cmake.org/t/creating-a-macos-app-bundle-from-several-executable-and-framework/4356). So, what you are suggesting is to build one of the executables as MACOSX\_BUNDLE and install the second on in the `Contents/MacOS` folder next to it, right?

---

_[View the full topic](https://discourse.cmake.org/t/how-to-add-executable-targetb-macosx-bundle-targetb-cc-targeta/2482)._
