/clap-tutorial

CLAP plugin tutorial

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

CLAP plugin tutorial

This is an adaptation for nakst's excellent CLAP plugin tutorial for C++20, CMake and vcpkg.

Prerequisites

  • vcpkg

Install vcpkg

If you don't have vcpkg installed yet:

git clone https://github.com/microsoft/vcpkg.git
cd vcpkg && bootstrap-vcpkg.sh

Then append this to your .bashrc or .zshrc:

export VCPKG_ROOT=<vcpkg_repo_location>
export PATH=$VCPKG_ROOT:$PATH

On Windows, run bootstrap-vcpkg.bat instead and set the PATH Windows enviroment variable accordingly.

Building

Configure the project:

cmake --preset=default

Build the project (output will be in the build/ subdirectory):

cmake --build build

To clean the build directory:

cmake --build build --target clean

To nuke all local files on the .gitignore list:

git clean -dfX

Useful references