-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (47 loc) · 1.36 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment target")
if(WIN32)
set(CMAKE_SYSTEM_VERSION 7.1 CACHE STRING INTERNAL FORCE) # Windows SDK for Windows 7 and up
endif()
project(Wave_Synth VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 20)
set(COMPANY_NAME "chowdsp")
set(PRODUCT_NAME "Wave Synth")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/modules/cmake")
add_subdirectory(modules)
# set default plugin formats to build
if(IOS)
set(JUCE_FORMATS Standalone AUv3)
else()
set(JUCE_FORMATS AU VST3 Standalone)
endif()
juce_add_plugin(Wave_Synth
COMPANY_NAME "${COMPANY_NAME}"
PLUGIN_MANUFACTURER_CODE Chow
PLUGIN_CODE Ws24
FORMATS ${JUCE_FORMATS}
PRODUCT_NAME "${PRODUCT_NAME}"
BUNDLE_ID "org.chowdsp.wave-synth"
IS_SYNTH TRUE
NEEDS_MIDI_INPUT TRUE
)
if(NOT IOS)
clap_juce_extensions_plugin(
TARGET Wave_Synth
CLAP_ID "org.chowdsp.wave-synth"
CLAP_FEATURES instrument synthesizer
CLAP_PROCESS_EVENTS_RESOLUTION_SAMPLES 32
CLAP_USE_JUCE_PARAMETER_RANGES DISCRETE
)
endif()
add_subdirectory(src)
include_directories(src)
target_compile_definitions(Wave_Synth PUBLIC
JUCE_VST3_CAN_REPLACE_VST2=0
)
add_subdirectory(res)
target_link_libraries(Wave_Synth
PRIVATE
juce_plugin_modules
gui_resources
)