https://github.com/jamesn-dev/juce-vcpkg-cmake-vscode-example
How I set up my VSCode development environment for JUCE audio plugins using CMake and vcpkg on Mac. Includes a working "Hello World" plugin to verify everything's configured correctly.
https://github.com/jamesn-dev/juce-vcpkg-cmake-vscode-example
Last synced: 11 months ago
JSON representation
How I set up my VSCode development environment for JUCE audio plugins using CMake and vcpkg on Mac. Includes a working "Hello World" plugin to verify everything's configured correctly.
- Host: GitHub
- URL: https://github.com/jamesn-dev/juce-vcpkg-cmake-vscode-example
- Owner: JamesN-dev
- Created: 2024-12-04T03:29:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T04:36:41.000Z (over 1 year ago)
- Last Synced: 2025-04-04T13:27:12.390Z (about 1 year ago)
- Language: C++
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JUCE CMake vcpkg VSCode Setup
How I set up my VSCode development environment for JUCE audio plugins using CMake and vcpkg on Mac. Includes a working "Hello World" plugin to verify everything's configured correctly.
## What This Is
- My working VSCode dev setup for JUCE
- Basic "Hello World" plugin example
- Uses CMake + vcpkg instead of Projucer
- Happens to use Xcode's compiler (we're on Mac after all)
- Builds AU, VST3, and Standalone formats
## Requirements
- VSCode with C++ extensions
- CMake 3.22+
- Git
- Xcode (just for the compiler)
## Getting Started
1. Clone it:
```bash
git clone github.com:JamesN-dev/juce-vcpkg-cmake-vscode-example.git
cd cpp_test
```
2. Set up vcpkg:
```bash
git submodule add https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.sh -disableMetrics
```
3. Configure & Build:
```bash
cmake --preset buildx2
cmake --build build
```
Plugins end up in:
- `build/AudioPlugin/AudioPluginExample_artefacts/VST3/`
- `build/AudioPlugin/AudioPluginExample_artefacts/AU/`
- `build/AudioPlugin/AudioPluginExample_artefacts/Standalone/`
Once built, you can run the standalone version to see "Hello World!" - if you see it, everything's working!
## VSCode Setup
See SETUP.md for the detailed guide on getting VSCode configured from scratch.
## Project Structure
```
cpp_test/
├── CMakeLists.txt # Build setup
├── CMakePresets.json # Build presets
├── AudioPlugin/ # Plugin code (Hello World example)
└── vcpkg/ # Package manager
```