Awesome Open Source
Awesome Open Source

|Code_of_Conduct| |AppVeyor| |Azure_Pipelines| |Read_the_Docs|

.. image:: FRUT.svg :target: :alt: FRUT

FRUT makes it easy to build JUCE_ projects using CMake_ instead of Projucer_. It enables more flexibility in project architecture, simplified CI setup, and easier integration with other JUCE and non-JUCE projects. Converting an existing JUCE project to FRUT is easy, and you don't need to be a CMake expert to use it!

In short

  • Requirements

    • CMake (3.4 minimum, or higher depending on the target platform <#supported-projucer-exporters>__)
    • JUCE (4.2.0 minimum)
  • Supported platforms

    • iOS
    • Linux
    • macOS
    • Windows (MSVC and MinGW)
  • Documentation -

  • Contributing

    • Contributions are welcome! See CONTRIBUTING.md_ for more details.
    • All contributors are recognized <#contributors>__

Table of Contents

.. contents:: :local: :backlinks: none


JUCE_ comes with its own project generation tool, Projucer_, which is very useful when starting a JUCE project. However, Projucer doesn't scale well when you want to make some aspects of your project configurable, when you want to add external libraries, when you want to use Continuous Integration, or when you want to manage several projects at once.

FRUT was created to overcome these limitations, while making it very easy to migrate an existing JUCE project that uses Projucer. Since FRUT is based on CMake_, you also get access to many great features of CMake, including testing <>__ and packaging <>__ utilities.


FRUT currently contains:

  • Jucer2CMake, a console application that converts .jucer project files into ready-to-use CMakeLists.txt files,

  • Reprojucer.cmake, a CMake module that provides high-level functions to reproduce how a JUCE project is defined in Projucer,

  • Jucer2Reprojucer (deprecated in favor of Jucer2CMake), a console application that converts .jucer project files into ready-to-use CMakeLists.txt files that include and use Reprojucer.cmake,

  • several CMakeLists.txt files generated from existing .jucer project files, including:

    • examples and extras projects from JUCE 4.2.0_ (in generated/JUCE-4.2.0_)
    • examples and extras projects from JUCE 4.3.1_ (in generated/JUCE-4.3.1_)
    • examples and extras projects from JUCE 5.0.0_ (in generated/JUCE-5.0.0_)
    • examples and extras projects from JUCE 5.2.1_ (in generated/JUCE-5.2.1_)
    • examples and extras projects from JUCE 5.3.1_ (in generated/JUCE-5.3.1_)
    • examples and extras projects from JUCE 5.4.3_ (in generated/JUCE-5.4.3_)
    • examples and extras projects from JUCE 5.4.7_ (in generated/JUCE-5.4.7_)
    • examples and extras projects from JUCE 6.0.5_ (in generated/JUCE-6.0.5_)


  • CMake, version 3.4 minimum
  • JUCE, version 4.2.0 minimum

Supported Projucer exporters

Jucer2CMake, Reprojucer.cmake, and Jucer2Reprojucer (deprecated in favor of Jucer2CMake) support the following Projucer exporters (also known as "export targets"):

.. raw:: html

Supported Exporter CMake requirements and options Missing features
✔️ Xcode (MacOSX) 2 unsupported Xcode exporter settings
✔️ Xcode (iOS) version 3.14 minimum
✔️ Visual Studio 2019 version 3.14 minimum
✔️ Visual Studio 2017 version 3.7 minimum
(3.13.3 when VS 2019 is installed)
✔️ Visual Studio 2015
✔️ Visual Studio 2013
✔️ Linux Makefile
✔️ Code::Blocks (Windows)
✔️ Code::Blocks (Linux)


You can read the documentation of FRUT on Read the Docs:

Getting started

Let's consider that you have a copy of JUCE, a copy of FRUT and a JUCE project called MyGreatProject following this folder structure: ::

├── FRUT/ ├── JUCE/ └── MyGreatProject/ ├── Source/ └── MyGreatProject.jucer

We first build and install FRUT with CMake: ::

$ cd /FRUT/

$ mkdir build && cd build/

$ cmake .. -DCMAKE_INSTALL_PREFIX="../prefix" -DJUCE_ROOT="../../JUCE" ... -- Configuring done -- Generating done -- Build files have been written to: /FRUT/build

$ cmake --build . --target install


$ cmake --build . --target install --parallel # with CMake 3.12 or later ...

If it fails to build and install, please report the problem by creating a new issue on GitHub:

Then we convert MyGreatProject.jucer to a new CMakeLists.txt file: ::

$ cd /MyGreatProject/

$ ../FRUT/prefix/FRUT/bin/Jucer2CMake reprojucer MyGreatProject.jucer ../FRUT/prefix/FRUT/cmake/Reprojucer.cmake

/MyGreatProject/CMakeLists.txt has been successfully generated.

Now we can build MyGreatProject using CMake: ::

$ cd /MyGreatProject/

$ mkdir build && cd build/

$ cmake .. -G ... -- Configuring done -- Generating done -- Build files have been written to: /MyGreatProject/build

$ cmake --build .


$ cmake --build . -- -parallelizeTargets # when is Xcode


$ cmake --build . --parallel # with CMake 3.12 or later ...

<generator> can be one of many CMake Generators_ supported by your platform, including Ninja, NMake Makefiles (on Windows), Unix Makefiles (on Linux and macOS), Visual Studio 2013, 2015, 2017 and 2019 (on Windows), and Xcode (on macOS).


Contributions to FRUT are very welcomed and you can contribute even if you don't know anything about CMake. See the CONTRIBUTING.md_ file for more details.


FRUT follows the all-contributors_ specification and is brought to you by these awesome contributors:

.. raw:: html

Alain Martin

💻 👀 📖

Matthieu Talbot

👀 💻 🐛

Florian Goltz


Fabien Roussel

🐛 👀

Xavier Jouvenot

🐛 👀

Nikolai Wuttke


Dominik Grzelak


Dennis Scheffer

🐛 💻

Scott Wheeler

💻 🐛

Iqra Shahzad


Romain Clement


Stijn Frishert


Jerry Chan

🐛 👀

Frank Lange


Johannes Elliesen

🐛 💻

David Holland


Dimitri Sudell


Dan Raviv

🐛 👀

Rory Walsh


Eyal Amir


Michael Hetrick



💻 👀

Alexey Romanoff




FRUT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

FRUT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE_ file for more details.

.. |Code_of_Conduct| image:: :target: :alt: Contributor Covenant Code of Conduct

.. |AppVeyor| image:: :target: :alt: AppVeyor build status

.. |Azure_Pipelines| image:: :target: :alt: Azure Pipelines build status

.. |Read_the_Docs| image:: :target: :alt: Documentation status

.. |GPLv3| image:: :target: :alt: GNU General Public License

.. .. _LICENSE: LICENSE .. _generated/JUCE-4.2.0: generated/JUCE-4.2.0 .. _generated/JUCE-4.3.1: generated/JUCE-4.3.1 .. _generated/JUCE-5.0.0: generated/JUCE-5.0.0 .. _generated/JUCE-5.2.1: generated/JUCE-5.2.1 .. _generated/JUCE-5.3.1: generated/JUCE-5.3.1 .. _generated/JUCE-5.4.3: generated/JUCE-5.4.3 .. _generated/JUCE-5.4.7: generated/JUCE-5.4.7 .. _generated/JUCE-6.0.5: generated/JUCE-6.0.5

.. _CMake Generators: .. _CMake: .. _FRUT: .. _JUCE 4.2.0: .. _JUCE 4.3.1: .. _JUCE 5.0.0: .. _JUCE 5.2.1: .. _JUCE 5.3.1: .. _JUCE 5.4.3: .. _JUCE 5.4.7: .. _JUCE 6.0.5: .. _JUCE: .. _Projucer: .. _all-contributors:

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
cmake (390
easy (47
projects (34
juce (23

Find Open Source By Browsing 7,000 Topics Across 59 Categories