# CMake

**URL:** https://forum.juce.com/c/cmake/31.md

[Latest](https://forum.juce.com/latest.md) · [Categories](https://forum.juce.com/categories.md) · [Tags](https://forum.juce.com/tags.md)

---

## [About the CMake category](https://forum.juce.com/t/about-the-cmake-category/45829)

<div class="topic-metadata">

**Author:** [@reuk](https://forum.juce.com/u/reuk)\
**Replies:** 0

</div>

This category should be used for questions and feedback relating to CMake, especially JUCE’s CMake integration.

---

## [JUCE linking issues with a CMake library that links to JUCE with a test project executable](https://forum.juce.com/t/juce-linking-issues-with-a-cmake-library-that-links-to-juce-with-a-test-project-executable/69665)

<div class="topic-metadata">

**Author:** [@MaxWalley](https://forum.juce.com/u/MaxWalley)\
**Replies:** 2\
**Last updated:** [October 8, 2026, 12:13pm UTC](https://forum.juce.com/t/juce-linking-issues-with-a-cmake-library-that-links-to-juce-with-a-test-project-executable/69665 "2026-10-08T12:13:13Z")

</div>

I have a library that includes some JUCE functionality. This library links to JUCE (specifically the juce core module). Here’s the CMakeLists.txt for this: cmake\_minimum\_required(VERSION 3.12) project(salsa LANGUAGES C…

---

## [Module-only repo cmake problems](https://forum.juce.com/t/module-only-repo-cmake-problems/69115)

<div class="topic-metadata">

**Author:** [@sam-eastman](https://forum.juce.com/u/sam-eastman)\
**Replies:** 2\
**Last updated:** [July 30, 2026, 5:22pm UTC](https://forum.juce.com/t/module-only-repo-cmake-problems/69115 "2026-07-30T17:22:33Z")

</div>

I’m trying to make a separate repo for modules to use in multiple plugins, but have build problems. I made a narrowed down repo with minimal code. I have separate directories for modules, examples (plugins just to exerci…

---

## [CLion/cmake for iOS/Android Audio App (not plugin)](https://forum.juce.com/t/clion-cmake-for-ios-android-audio-app-not-plugin/68952)

<div class="topic-metadata">

**Author:** [@eludema](https://forum.juce.com/u/eludema)\
**Replies:** 2\
**Last updated:** [June 10, 2026, 8:42pm UTC](https://forum.juce.com/t/clion-cmake-for-ios-android-audio-app-not-plugin/68952 "2026-06-10T20:42:01Z")

</div>

Hi! I’m newish to JUCE, and wish I had know about it 9 years ago when I built and published an app in Xamarin Forms… The app worked great, though I had to do all the audio from the ground up, which made it really brittle…

---

## [JuceHeader and user modules with Cmake?](https://forum.juce.com/t/juceheader-and-user-modules-with-cmake/68303)

<div class="topic-metadata">

**Author:** [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Replies:** 7\
**Last updated:** [February 25, 2026, 9:35am UTC](https://forum.juce.com/t/juceheader-and-user-modules-with-cmake/68303 "2026-02-25T09:35:17Z")

</div>

How to properly add custom modules (switching from Projucer to CMake)? I have a folder /Libraries (sibling to JUCE) with my modules (and following CMakeLists.txt). juce\_add\_modules(ALIAS\_NAMESPACE spaghettis spaghetti…

---

## [CMake generator on macOS?](https://forum.juce.com/t/cmake-generator-on-macos/68199)

<div class="topic-metadata">

**Author:** [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Replies:** 14\
**Last updated:** [February 17, 2026, 11:36am UTC](https://forum.juce.com/t/cmake-generator-on-macos/68199 "2026-02-17T11:36:32Z")

</div>

To build an App on macOS with CMake (juce\_add\_gui\_app) is it possible to use the default Makefile generator? Is the result the same that using XCode generator? What do you use?

---

## [About compilation flags with CMAKE](https://forum.juce.com/t/about-compilation-flags-with-cmake/68175)

<div class="topic-metadata">

**Author:** [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Replies:** 2\
**Last updated:** [February 12, 2026, 7:25am UTC](https://forum.juce.com/t/about-compilation-flags-with-cmake/68175 "2026-02-12T07:25:10Z")

</div>

New to CMAKE i need an enlightenment. :woozy\_face: target\_link\_libraries(AppExample PRIVATE juce::juce\_core my::module PUBLIC juce::juce\_recommended\_config\_flags juce::juce\_recommended\_warning\_flags) Is that l…

---

## [CPM Error generating JUCE project using CMake & CPM](https://forum.juce.com/t/cpm-error-generating-juce-project-using-cmake-cpm/65510)

<div class="topic-metadata">

**Author:** [@umlore](https://forum.juce.com/u/umlore)\
**Replies:** 7\
**Last updated:** [February 10, 2026, 3:50pm UTC](https://forum.juce.com/t/cpm-error-generating-juce-project-using-cmake-cpm/65510 "2026-02-10T15:50:04Z")

</div>

I’m new to CMake & CPM, and attempting to get started with using them to generate JUCE projects. My CMakeLists.txt: cmake\_minimum\_required(VERSION 3.22) project(metronome) set(CMAKE\_CXX\_STANDARD 23) set(LIB\_DIR ${CM…

---

## [Could/Should Binary data be hidden by default in CMake?](https://forum.juce.com/t/could-should-binary-data-be-hidden-by-default-in-cmake/67937)

<div class="topic-metadata">

**Author:** [@pmbk](https://forum.juce.com/u/pmbk)\
**Replies:** 0\
**Last updated:** [January 9, 2026, 9:49pm UTC](https://forum.juce.com/t/could-should-binary-data-be-hidden-by-default-in-cmake/67937 "2026-01-09T21:49:08Z")

</div>

I’ve noticed that JUCE sets the visibilities of its internals to hidden in CMake; could this also be added to juce\_add\_binary\_data as well so that a plugins’ binary data is also automatically hidden by default?

---

## [Juce\_add\_bundle\_resources\_directory question](https://forum.juce.com/t/juce-add-bundle-resources-directory-question/60971)

<div class="topic-metadata">

**Author:** [@drum-computer](https://forum.juce.com/u/drum-computer)\
**Replies:** 3\
**Last updated:** [December 12, 2025, 10:44am UTC](https://forum.juce.com/t/juce-add-bundle-resources-directory-question/60971 "2025-12-12T10:44:19Z")

</div>

Hey everyone! I have all my resources in the root of the project under /resources folder. I want to be able to add all these files to the app/Contents/Resources, when I specify in cmake juce\_add\_bundle\_resources\_directo…

---

## [Android: Oboe CMakeLists.txt needs version bump for CMake 4](https://forum.juce.com/t/android-oboe-cmakelists-txt-needs-version-bump-for-cmake-4/67593)

<div class="topic-metadata">

**Author:** [@kcoul](https://forum.juce.com/u/kcoul)\
**Replies:** 1\
**Last updated:** [November 17, 2025, 6:07am UTC](https://forum.juce.com/t/android-oboe-cmakelists-txt-needs-version-bump-for-cmake-4/67593 "2025-11-17T06:07:25Z")

</div>

Homebrew now installs CMake 4 by default, which no longer works with CMake \< 3.5. The CMakeLists.txt for Oboe is still 3.4.1 and needs to be bumped to 3.5:

---

## [My plugin is build successfully but I can't hear anything](https://forum.juce.com/t/my-plugin-is-build-successfully-but-i-cant-hear-anything/67520)

<div class="topic-metadata">

**Author:** [@sohail-shabir](https://forum.juce.com/u/sohail-shabir)\
**Replies:** 2\
**Last updated:** [November 13, 2025, 5:40am UTC](https://forum.juce.com/t/my-plugin-is-build-successfully-but-i-cant-hear-anything/67520 "2025-11-13T05:40:32Z")

</div>

I’m working on a plugin and when I start plugin to build, build is successfull and I can see the UI properly, but there is something wrong I can’t test any functionality of UI as whatever the sample/wave file I feed, I c…

---

## [My Plugin is Silently Crashing, Can anyone help?](https://forum.juce.com/t/my-plugin-is-silently-crashing-can-anyone-help/67502)

<div class="topic-metadata">

**Author:** [@sohail-shabir](https://forum.juce.com/u/sohail-shabir)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 7:26am UTC](https://forum.juce.com/t/my-plugin-is-silently-crashing-can-anyone-help/67502 "2025-11-05T07:26:40Z")

</div>

Below is the attachement when I run the standalone plugin in debugging mode, If I run without debugging it doesn’t show any result or error….

---

## [Using clang-tidy with CMake and excluding JUCE headers](https://forum.juce.com/t/using-clang-tidy-with-cmake-and-excluding-juce-headers/59403)

<div class="topic-metadata">

**Author:** [@EwanMe](https://forum.juce.com/u/EwanMe)\
**Replies:** 3\
**Last updated:** [September 7, 2025, 7:18pm UTC](https://forum.juce.com/t/using-clang-tidy-with-cmake-and-excluding-juce-headers/59403 "2025-09-07T19:18:51Z")

</div>

I’m trying to run static analysis on my code using clang-tidy integrated into CMake, but I am having issues with clang-tidy running analysis on JUCE headers. Since these do not satisfy my rules in the .clang-tidy file, a…

---

## [Ambiguous documentation for AAX\_CATEGORY](https://forum.juce.com/t/ambiguous-documentation-for-aax-category/56374)

<div class="topic-metadata">

**Author:** [@rcohen](https://forum.juce.com/u/rcohen)\
**Replies:** 2\
**Last updated:** [September 3, 2025, 2:03pm UTC](https://forum.juce.com/t/ambiguous-documentation-for-aax-category/56374 "2025-09-03T14:03:02Z")

</div>

Hi, In CMake API.md, the documentation for VST3\_CATEGORIES is clear: Should be one or more, separated by spaces, of the following: Fx, Instrument, Analyzer, Delay, Distortion, Drum, Dynamics, EQ, External, Filter, Gene…

---

## [Visibility settings in JUCEUtils.cmake](https://forum.juce.com/t/visibility-settings-in-juceutils-cmake/66821)

<div class="topic-metadata">

**Author:** [@eaylon](https://forum.juce.com/u/eaylon)\
**Replies:** 13\
**Last updated:** [August 12, 2025, 5:31pm UTC](https://forum.juce.com/t/visibility-settings-in-juceutils-cmake/66821 "2025-08-12T17:31:51Z")

</div>

Hi there, I’m seeing an issue related to visibility settings in JUCEUtils.cmake. In particular in functions \_juce\_link\_plugin\_wrapper and \_juce\_configure\_plugin\_targets. If visibility is set to: VISIBILITY\_INLINES\_HIDD…

---

## [Code organization vs. build granularity](https://forum.juce.com/t/code-organization-vs-build-granularity/66709)

<div class="topic-metadata">

**Author:** [@jacopoeftilo](https://forum.juce.com/u/jacopoeftilo)\
**Replies:** 5\
**Last updated:** [July 29, 2025, 12:33pm UTC](https://forum.juce.com/t/code-organization-vs-build-granularity/66709 "2025-07-29T12:33:29Z")

</div>

Hi everyone! This is not specifically JUCE related, but I’d like to hear how you dealt with code organization vs. build granularity. I currently use a single repository for all my plugin projects. With CMake and bash sc…

---

## [Crosscompiling for arm64 on a x86 machine](https://forum.juce.com/t/crosscompiling-for-arm64-on-a-x86-machine/54610)

<div class="topic-metadata">

**Author:** [@Sidelobe](https://forum.juce.com/u/Sidelobe)\
**Replies:** 6\
**Last updated:** [July 14, 2025, 12:21pm UTC](https://forum.juce.com/t/crosscompiling-for-arm64-on-a-x86-machine/54610 "2025-07-14T12:21:20Z")

</div>

Azure build pipelines don’t yet support arm64 machines (but will soon). In the meantime, I want at least start building for arm64 in my CI pipelines on Azure. I’m able to build other projects cmake -G "Visual Studio 17…

---

## [Buffer input is silent when using CMake](https://forum.juce.com/t/buffer-input-is-silent-when-using-cmake/66526)

<div class="topic-metadata">

**Author:** [@StefanMaltais](https://forum.juce.com/u/StefanMaltais)\
**Replies:** 0\
**Last updated:** [July 4, 2025, 4:00pm UTC](https://forum.juce.com/t/buffer-input-is-silent-when-using-cmake/66526 "2025-07-04T16:00:11Z")

</div>

Hi, my issue is basically what the title says. I’m not exactly sure what’s going on, but even though my CMake build is successful, the buffer’s magnitude in processBlock is 0, which is odd since the plugin/standalone app…

---

## [Input\_file\_list avoid unneeded rebuild patch](https://forum.juce.com/t/input-file-list-avoid-unneeded-rebuild-patch/66509)

<div class="topic-metadata">

**Author:** [@jimc](https://forum.juce.com/u/jimc)\
**Replies:** 1\
**Last updated:** [July 3, 2025, 4:57pm UTC](https://forum.juce.com/t/input-file-list-avoid-unneeded-rebuild-patch/66509 "2025-07-03T16:57:26Z")

</div>

diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index 0beca97342..2ffc8b76f7 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -433,7 +433,16…

---

## [Possible to match Xcode source groups to folder structure?](https://forum.juce.com/t/possible-to-match-xcode-source-groups-to-folder-structure/66475)

<div class="topic-metadata">

**Author:** [@nbacklund](https://forum.juce.com/u/nbacklund)\
**Replies:** 2\
**Last updated:** [June 29, 2025, 9:57pm UTC](https://forum.juce.com/t/possible-to-match-xcode-source-groups-to-folder-structure/66475 "2025-06-29T21:57:13Z")

</div>

I’m trying to keep my source code organized in folders, but since I migrated my project to CMake I just get all the headers and source files in separate but completely flat source groups. Is there a way to make it look …

---

## [CMake juceaide failing in tests (8.0.x)](https://forum.juce.com/t/cmake-juceaide-failing-in-tests-8-0-x/66274)

<div class="topic-metadata">

**Author:** [@StefanMaltais](https://forum.juce.com/u/StefanMaltais)\
**Replies:** 2\
**Last updated:** [June 5, 2025, 7:19pm UTC](https://forum.juce.com/t/cmake-juceaide-failing-in-tests-8-0-x/66274 "2025-06-05T19:19:58Z")

</div>

Hi all, I’m trying to use cmake to build a juce project in a windows container. I have it working on my host pc, and on a linux container, however it fails within the windows container itself, specifically on the running…

---

## [Can not resolve JucePlugin\_Name from example AudioPlugin project](https://forum.juce.com/t/can-not-resolve-juceplugin-name-from-example-audioplugin-project/66156)

<div class="topic-metadata">

**Author:** [@Nebxl0us](https://forum.juce.com/u/Nebxl0us)\
**Replies:** 7\
**Last updated:** [May 22, 2025, 1:41pm UTC](https://forum.juce.com/t/can-not-resolve-juceplugin-name-from-example-audioplugin-project/66156 "2025-05-22T13:41:00Z")

</div>

Hello there, when trying to get JUCE/examples/CMake/AudioPlugin running, I came across the issue to not being able to resolve JucePlugin\_Name from PluginProcessor.cpp’s getName() function. I have not modified anything a…

---

## [Problems building, can't remove moduleinfo.json](https://forum.juce.com/t/problems-building-cant-remove-moduleinfo-json/60763)

<div class="topic-metadata">

**Author:** [@subnite](https://forum.juce.com/u/subnite)\
**Replies:** 4\
**Last updated:** [December 31, 2024, 11:57am UTC](https://forum.juce.com/t/problems-building-cant-remove-moduleinfo-json/60763 "2024-12-31T11:57:16Z")

</div>

I’ve been using JUCE 7.0.5 since last year but I decided to update to 7.0.11. For one project I’m working on it was fine but for the other I get this error: FAILED: Source/PhaseVocoder\_artefacts/Debug/VST3/Phase Vocoder…

---

## [How to properly disable JUCE\_COPY\_PLUGIN\_AFTER\_BUILD?](https://forum.juce.com/t/how-to-properly-disable-juce-copy-plugin-after-build/65266)

<div class="topic-metadata">

**Author:** [@ibisum](https://forum.juce.com/u/ibisum)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 10:26am UTC](https://forum.juce.com/t/how-to-properly-disable-juce-copy-plugin-after-build/65266 "2025-02-21T10:26:58Z")

</div>

I’m running into a frustrating issue I could use help with. On my development systems, we want the plugins to be installed in place, for debugging/developing purposes (e.g., on MacOS, in ~/Libray/Audio/Plug-Ins/Componen…

---

## [COPY\_PLUGIN\_AFTER\_BUILD per plugin format?](https://forum.juce.com/t/copy-plugin-after-build-per-plugin-format/64907)

<div class="topic-metadata">

**Author:** [@roelV](https://forum.juce.com/u/roelV)\
**Replies:** 5\
**Last updated:** [January 16, 2025, 12:22pm UTC](https://forum.juce.com/t/copy-plugin-after-build-per-plugin-format/64907 "2025-01-16T12:22:38Z")

</div>

Building AAX in a CI environment with COPY\_PLUGIN\_AFTER\_BUILD set to TRUE results in an error: file cannot create directory: /Library/Application/Support/Avid/Audio/Plug-Ins Since I don’t necessarily need to copy the p…

---

## [AAX Plugin install permissions/issue](https://forum.juce.com/t/aax-plugin-install-permissions-issue/64869)

<div class="topic-metadata">

**Author:** [@ibisum](https://forum.juce.com/u/ibisum)\
**Replies:** 2\
**Last updated:** [January 13, 2025, 12:58pm UTC](https://forum.juce.com/t/aax-plugin-install-permissions-issue/64869 "2025-01-13T12:58:46Z")

</div>

We are currently building the AAX version of OurCoolPlugin within a VM, and constantly run into this issue: -- Installing: /Library/Application Support/Avid/Audio/Plug-Ins/OurCoolPlugin.aaxplugin CMake Error at /Users/b…

---

## [Copy directory of assets to plugin output dir](https://forum.juce.com/t/copy-directory-of-assets-to-plugin-output-dir/64304)

<div class="topic-metadata">

**Author:** [@brothernorth](https://forum.juce.com/u/brothernorth)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 10:11pm UTC](https://forum.juce.com/t/copy-directory-of-assets-to-plugin-output-dir/64304 "2024-11-19T22:11:55Z")

</div>

Hi, Is it possible to copy a directory of non-code assets to the same place as the compiled plugin? This would make packaging easier for plugins which include files other than just the compiled plugin. For example, in…

---

## [Bug: CMake Linux tooling should not link plugins against libwebkit2gtk](https://forum.juce.com/t/bug-cmake-linux-tooling-should-not-link-plugins-against-libwebkit2gtk/63870)

<div class="topic-metadata">

**Author:** [@thirtythreeforty](https://forum.juce.com/u/thirtythreeforty)\
**Replies:** 7\
**Last updated:** [November 7, 2024, 9:25pm UTC](https://forum.juce.com/t/bug-cmake-linux-tooling-should-not-link-plugins-against-libwebkit2gtk/63870 "2024-11-07T21:25:35Z")

</div>

I have a plugin configured to use a webview for UI. With the JUCE CMake tools, this looks like: juce\_add\_plugin(MyPlugin IS\_SYNTH TRUE NEEDS\_MIDI\_INPUT TRUE NEEDS\_WEB\_BROWSER TRUE NEEDS\_C…

---

## [Icon.icns file installs as sibling to plugin bundle](https://forum.juce.com/t/icon-icns-file-installs-as-sibling-to-plugin-bundle/64115)

<div class="topic-metadata">

**Author:** [@SQUARESEQUENCE](https://forum.juce.com/u/SQUARESEQUENCE)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 8:03am UTC](https://forum.juce.com/t/icon-icns-file-installs-as-sibling-to-plugin-bundle/64115 "2024-11-07T08:03:19Z")

</div>

Hi there, Is it possible to have \_juce\_generate\_icon omit installing the Icon.icns file for plugin formats .component/.vst3 to the “…/JuceLibraryCode/Icon.icns” location ? I’m unaware of any daw that makes use of these. …

[Next page](https://forum.juce.com/c/cmake/31.md?page=1)
