-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
66 lines (54 loc) · 3.22 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
# This program 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.
#
# This program 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.15)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "Minimum OS X deployment version" FORCE)
project(CRYPT_SYNTH_PLUGIN VERSION 0.3.0)
add_subdirectory(JUCE)
juce_add_plugin(CryptSynthPlugin
VERSION 0.3.0 # Set this if the plugin version is different to the project version
ICON_BIG ${CMAKE_CURRENT_SOURCE_DIR}/icon.png # ICON_* arguments specify a path to an image file to use as an icon for the Standalone
ICON_SMALL ${CMAKE_CURRENT_SOURCE_DIR}/icon.png
COMPANY_NAME Vitling # Specify the name of the plugin's author
IS_SYNTH TRUE # Is this a synth or an effect?
NEEDS_MIDI_INPUT TRUE # Does the plugin need midi input?
NEEDS_MIDI_OUTPUT FALSE # Does the plugin need midi output?
IS_MIDI_EFFECT FALSE # Is this plugin a MIDI effect?
EDITOR_WANTS_KEYBOARD_FOCUS FALSE # Does the editor need keyboard focus?
COPY_PLUGIN_AFTER_BUILD TRUE # Should the plugin be installed to a default location after building?
PLUGIN_MANUFACTURER_CODE Vitl # A four-character manufacturer id with at least one upper-case character
PLUGIN_CODE Crpt # A unique four-character plugin id with at least one upper-case character
DESCRIPTION "Hyper-Unison Synthesiser from Bow Church/Vitling"
VST3_CATEGORIES "Instrument Synth Stereo"
AU_MAIN_TYPE "kAudioUnitType_MusicDevice"
FORMATS VST3 AU # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
BUNDLE_ID "xyz.vitling.plugins.crypt"
HARDENED_RUNTIME_ENABLED TRUE
PRODUCT_NAME "Crypt") # The name of the final executable, which can differ from the target name
juce_generate_juce_header(CryptSynthPlugin)
target_sources(CryptSynthPlugin PRIVATE
CryptPlugin.cpp)
target_compile_definitions(CryptSynthPlugin
PUBLIC
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0
# We don't have to display the splash screen since we're using JUCE
# under the GPL
JUCE_DISPLAY_SPLASH_SCREEN=0)
juce_add_binary_data(CryptSynthPluginData SOURCES ui.png)
set_target_properties(CryptSynthPluginData PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(CryptSynthPlugin PRIVATE
CryptSynthPluginData
juce::juce_audio_utils)