-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (43 loc) · 1.46 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.16..3.22)
project (juce_audio_plugin VERSION 0.0.1)
set (juce_dir "$ENV{HOME}/Documents/Code/JUCE/")
# set (juce_dir "C:/develop/juce_clap_host/libs/JUCE")
add_subdirectory (${juce_dir} "${PROJECT_BINARY_DIR}/juce")
option (JUCE_BUILD_EXTRAS "Build JUCE Extras" OFF)
option (JUCE_BUILD_EXAMPLES "Build JUCE Examples" OFF)
file (GLOB_RECURSE SOURCE CONFIGURE_DEPENDS *.cpp *.h) # i do what i want
set (JUCE_GENERATE_JUCE_HEADER 1)
set (JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP 1)
juce_add_plugin ( ${PROJECT_NAME}
PRODUCT_NAME "Audio Plugin Example"
COMPANY_NAME dev.juce
PLUGIN_MANUFACTURER_CODE Juce
PLUGIN_CODE Dem0
FORMATS Standalone AU VST3
COPY_PLUGIN_AFTER_BUILD TRUE
)
add_compile_definitions (
JUCE_DISABLE_JUCE_VERSION_PRINTING=1
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0
)
add_compile_definitions (
JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP=${JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP}
)
if (JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP)
list (APPEND SOURCE "shared/standalone/StandaloneFilterApp.cpp")
endif()
if (JUCE_GENERATE_JUCE_HEADER)
juce_generate_juce_header (${PROJECT_NAME})
endif()
target_sources ( ${PROJECT_NAME} PRIVATE ${SOURCE})
target_link_libraries ( ${PROJECT_NAME}
PRIVATE
juce::juce_audio_utils
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
)