-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
53 lines (44 loc) · 1.53 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "Minimum OS X deployment target")
project(ChowProtoPlug VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 20)
set(COMPANY_NAME "chowdsp")
set(PRODUCT_NAME "ChowProtoPlug")
add_subdirectory(modules)
set(JUCE_FORMATS AU VST3 Standalone)
juce_add_plugin(ChowProtoPlug
COMPANY_NAME "${COMPANY_NAME}"
PLUGIN_MANUFACTURER_CODE Chow
PLUGIN_CODE Cpp4
FORMATS ${JUCE_FORMATS}
PRODUCT_NAME "${PRODUCT_NAME}"
MICROPHONE_PERMISSION_ENABLED TRUE
)
if(NOT IOS)
clap_juce_extensions_plugin(
TARGET ChowProtoPlug
CLAP_ID "org.chowdsp.ChowProtoPlug"
CLAP_FEATURES audio-effect
CLAP_PROCESS_EVENTS_RESOLUTION_SAMPLES 64
CLAP_USE_JUCE_PARAMETER_RANGES DISCRETE
)
endif()
add_subdirectory(src)
include_directories(src)
message(STATUS "Forwarding CMake/Compiler info\n"
"CMAKE_EXE_PATH=${CMAKE_COMMAND}\n"
"CMAKE_GENERATOR=${CMAKE_GENERATOR}\n"
"CMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}\n"
"CMAKE_C_COMPILER=${CMAKE_C_COMPILER}\n"
"CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
)
target_compile_definitions(ChowProtoPlug PUBLIC
JUCE_VST3_CAN_REPLACE_VST2=0
DEFAULT_MODULE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/TestModule"
CMAKE_EXE_PATH="${CMAKE_COMMAND}"
CMAKE_GENERATOR="${CMAKE_GENERATOR}"
CMAKE_MAKE_PROGRAM="${CMAKE_MAKE_PROGRAM}"
CMAKE_C_COMPILER="${CMAKE_C_COMPILER}"
CMAKE_CXX_COMPILER="${CMAKE_CXX_COMPILER}"
)
target_link_libraries(ChowProtoPlug PRIVATE juce_plugin_modules)