#git-repository #cmake #juce #initialization #setting-up #submodule

bin+lib jumake

JuMake is a command-line tool designed to simplify and accelerate the process of setting up new JUCE projects using CMake

3 releases

0.1.2 Jul 29, 2024
0.1.1 Jul 28, 2024
0.1.0 Jul 27, 2024

#186 in Audio

Download history 25/week @ 2024-09-13 9/week @ 2024-09-20 4/week @ 2024-09-27 2/week @ 2024-10-04

101 downloads per month

MIT license

34KB
620 lines

JuMake: CMake Project Initialization for JUCE

Overview

JuMake is a command-line tool designed to simplify and accelerate the process of setting up new JUCE projects using CMake. It automates the creation of project structures, initializes Git repositories, clones the JUCE framework as a submodule, allowing developers to focus on their core audio application development rather than project setup logistics.

Features

  • Quick Project Initialization: Create a new project structure with a single command.
  • CMake Integration: Automatically generate a CMakeLists.txt file tailored for audio development.
  • Source File Templates: Set up initial C++ files, including Main.cpp, MainComponent.cpp, and MainComponent.h.
  • Git Integration: Initialize a Git repository for version control and add the JUCE submodule.
  • JUCE Submodule: Automatically clones the JUCE framework as a submodule and integrates it into the project.
  • Cross-Platform Compatibility: Designed to work on Windows, macOS, and Linux.

Installation

  1. Install Rust: If you don't have Rust installed, download and install it from https://www.rust-lang.org/tools/install.
  2. Install JuMake:
cargo install jumake

Usage

Create a New Project

jumake new <project_name>

This command will:

  • Ask you, what kind of project do you want to create: GUI Application, Audio Plugin or Console App?
  • Create a new directory with the specified project_name.
  • Generate a basic CMakeLists.txt file.
  • Create a src directory with template C++ files.
  • Initialize a Git repository.
  • Clone the JUCE framework as a submodule.
  • Add the JUCE submodule to the CMakeLists.txt.

Build the Project

jumake build

This command will:

  • Create a jumake_build directory.
  • Run CMake to generate the build files.
  • Run CMake to build the project.

Run the Project

jumake run

This command will:

  • Build the project (if it hasn't been built already).
  • Run the executable or open the application bundle, depending on the platform and project type.

Add new Class to your project

jumake add <class_type> <class_name>

<class_type> can be class or component. Where class will be a simple c++-class and component will be a JuceComponent.

This command will:

  • Add new <class_name>.cpp and <class_name>.h files in the src directory
  • Add the cpp to the CMakeLists.txt ready for use.

Examples

Create a new JUCE GUI application:

jumake new MyJuceApp

Build the project:

cd MyJuceApp
jumake build

Run the application:

jumake run

Contributing

Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.

This project is licensed under the MIT License - see the LICENSE.md file for details.

Dependencies

~13–23MB
~378K SLoC