Skip to content

Commit

Permalink
Update projucer vs cmake page
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed May 2, 2020
1 parent 09d30ab commit 35b6d9f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ webkit2gtk
WebKit
curl4-openssl
ToDo
xml
github.com
juce-framework
juce6
juce-6-demo
- chapters/ci.md
TLDR
- chapters/testing/pluginval.md
Expand Down
18 changes: 16 additions & 2 deletions chapters/setup/projucer_vs_cmake.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
# Projucer vs. CMake

Prior to JUCE version 6, the Projucer is the only official way of creating projects. CMake support is currently available on the `juce6` preview branch.

If you already know how CMake works, this will be your best option. The preview branch is very stable.

## Projucer

- Quick Setup
- Perfect IDE integration
- Hard to link external code/libraries

The Projucer is an application that comes with the JUCE library. It handles the creation if IDE projects and Makefiles depending on the platform. All of your configuration is stored in a `.jucer` file, which internally is xml. Compiler flags, defines & includes can be set for each platform independently. Limitations come when you want to link against third party code. If you get to this point you should probably switch to CMake.

This is definitely the fasted way of creating & running a project.

## CMake

- Interface targets
- Binary builder
CMake support is coming in JUCE version 6. This will let you simply write `add_subdirectory(path/to/JUCE)` in your CMake configuration.

A guide can be found in the JUCE repository: [github.com/juce-framework/JUCE/tree/juce6/examples/CMake](https://github.com/juce-framework/JUCE/tree/juce6/examples/CMake)

Example plug-in projects can be found here:

- [tobanteAudio/juce-6-demo](https://github.com/tobanteAudio/juce-6-demo)
- [tobanteAudio/modEQ](https://github.com/tobanteAudio/modEQ)

0 comments on commit 35b6d9f

Please sign in to comment.