# Projucer file conversion to cmake

**URL:** <https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114>\
**Category:** Audio Plugins\
**Created:** [April 21, 2022, 4:27pm UTC](https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114 "2022-04-21T16:27:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amusesmile](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/amusesmile/32/681_2.png) [@amusesmile](https://forum.juce.com/u/amusesmile)\
**Post date:** [April 21, 2022, 4:27pm UTC](https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114/1 "2022-04-21T16:27:28Z")

</div>

We’d like to figure out how to recreate something close or identical to the AudioPluginDemo using cmake instead of the Projucer. Is there an easy method or documentation about how to make this conversion?

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [April 21, 2022, 5:00pm UTC](https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114/2 "2022-04-21T17:00:09Z")

</div>

A good starting point is the CMakeLists at `examples/CMake/AudioPlugin/CMakeLists.txt`

---

<div class="post-metadata">

**Author:** ![amusesmile](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/amusesmile/32/681_2.png) [@amusesmile](https://forum.juce.com/u/amusesmile)\
**Post date:** [April 21, 2022, 5:09pm UTC](https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114/3 "2022-04-21T17:09:43Z")

</div>

Thanks- we actually use a cmake system for our normal plugins but we’re trying to figure out iOS and have had the most success with AudioPluginDemo’s iOS export, so wanted to recreate what I see there. For instance, how in cmake to do things like adding target dependencies and embed app extensions. I realize this isn’t a simple question- just wondering if there’s other resources/methods besides painstakingly piecing it together.

 ![Screen Shot 2022-04-21 at 10.07.52 AM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/8/8aff3ea41ece085196d87d28e7dd618390c8f62d.png)

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [April 21, 2022, 5:13pm UTC](https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114/4 "2022-04-21T17:13:56Z")

</div>

AUv3 plugins should build out-of-the-box with CMake, but you do need to use the Xcode exporter.

Something like this should work:

```auto
cmake -G Xcode -D CMAKE_SYSTEM_NAME=iOS -D CMAKE_OSX_ARCHITECTURES="arm7;arm64" -D CMAKE_OSX_DEPLOYMENT_TARGET=12.0

```

You’ll also need to remember to add `AUv3` and `Standalone` to the `FORMATS` argument of `juce_add_plugin`. Juce will automatically copy the AUv3 AppExtension to the correct location in the Standalone app bundle as part of the build.

---

<div class="post-metadata">

**Author:** ![amusesmile](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/amusesmile/32/681_2.png) [@amusesmile](https://forum.juce.com/u/amusesmile)\
**Post date:** [April 21, 2022, 5:17pm UTC](https://forum.juce.com/t/projucer-file-conversion-to-cmake/51114/5 "2022-04-21T17:17:27Z")

</div>

Thanks! I’m also seeing some of your advice on other threads related to this, so I appreciate the help and will search around and try to wrap my head around it.
