-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
68 lines (62 loc) · 2.99 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cmake_minimum_required(VERSION 3.15)
project(GgOverdrive VERSION 1.1.0)
#
# https://forum.juce.com/t/native-built-in-cmake-support-in-juce/38700
#
# Example:
# 1) cmake -B cmake-build
# 2) cmake --build cmake-build
#
# Example in my environment
# cmake -B cmake-build -DCMAKE_PREFIX_PATH=C:/juce-6.1.6 -DVST3_COPY_DIR=C:/VST3_development_plugins
# cmake --build cmake-build
#
# To enable copying av VST3 after build:
#
# cmake -B cmake-build -DVST3_COPY_DIR=/path/to/copy/targetdir
#
# To point out where JUCE is installed (if a specific JUCE installation is used)
#
# cmake -B cmake-build -DCMAKE_PREFIX_PATH=/path/to/JUCE/install
#
# How to build Release on Windows (Debug is default)
# cmake --build cmake-build --config Release
#
#
# Install JUCE globally:
# cd /path/to/clone/JUCE
# Configure build with library components only
# cmake -B cmake-build-install -DCMAKE_INSTALL_PREFIX=/path/to/JUCE/install
# Run the installation
# cmake --build cmake-build-install --target install
#
# Build JUCE stuff on Linux (Ubuntu):
# sudo apt install build-essential libssl-dev
#
# sudo apt install pkg-config libxrandr-dev libxcursor-dev
# sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev
#
# If LADSPA plug-in support needed (which seems to be necessary even if you don't build LADSPA plug-ins)
# sudo apt install ladspa-sdk
#
# https://forum.juce.com/t/list-of-juce-dependencies-under-linux/15121/44
# +-----------------------------+---------------------------------------------------------+
# | JUCE module | Packages |
# +-----------------------------+---------------------------------------------------------+
# | juce_audio_devices | libasound2-dev |
# +-----------------------------+---------------------------------------------------------+
# | juce_core | libcurl4-openssl-dev |
# | (unless JUCE_USE_CURL=0) | |
# +-----------------------------+---------------------------------------------------------+
# | juce_graphics | libx11-dev libxinerama-dev libxext-dev libfreetype6-dev |
# +-----------------------------+---------------------------------------------------------+
# | juce_gui_extra | libwebkit2gtk-4.0-dev |
# | (unless JUCE_WEB_BROWSER=0) | |
# +-----------------------------+---------------------------------------------------------+
# | juce_opengl | libglu1-mesa-dev |
# +-----------------------------+---------------------------------------------------------+
# Use FIND_PACKAGE if JUCE is installed globally
find_package(JUCE CONFIG REQUIRED)
# Use add_subdirectory(JUCE) if JUCE is available in the source tree
# add_subdirectory(JUCE)
add_subdirectory(Source)