-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (42 loc) · 1.33 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" 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(PitchShift VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 20)
set(COMPANY_NAME "chowdsp")
set(PRODUCT_NAME "PitchShift")
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(PitchShift
COMPANY_NAME "${COMPANY_NAME}"
PLUGIN_MANUFACTURER_CODE Chow
PLUGIN_CODE XXXX
FORMATS ${JUCE_FORMATS}
PRODUCT_NAME "${PRODUCT_NAME}"
LV2URI https://github.com/Chowdhury-DSP/PitchShift
MICROPHONE_PERMISSION_ENABLED TRUE
)
if(NOT IOS)
clap_juce_extensions_plugin(
TARGET PitchShift
CLAP_ID "org.chowdsp.PitchShift"
CLAP_FEATURES audio-effect
CLAP_PROCESS_EVENTS_RESOLUTION_SAMPLES 64
CLAP_USE_JUCE_PARAMETER_RANGES DISCRETE
)
endif()
add_subdirectory(src)
include_directories(src)
add_subdirectory(res)
target_compile_definitions(PitchShift PUBLIC
JUCE_VST3_CAN_REPLACE_VST2=0
)
target_link_libraries(PitchShift PRIVATE juce_plugin_modules)