-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
57 lines (46 loc) · 1.34 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
cmake_minimum_required (VERSION 3.15)
set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
project (ABComparison VERSION 1.5.0)
set (CMAKE_CXX_STANDARD 17)
add_subdirectory (JUCE)
set (ABC_TARGETS Standalone) # add VST3 here if you want to build it
if (DEFINED VST2PATH)
juce_set_vst2_sdk_path (${VST2PATH})
list (APPEND ABC_TARGETS VST)
else ()
message (WARNING "VST2PATH not defined, not building VST2 version.")
endif ()
juce_add_plugin (
ABComparison
PLUGIN_MANUFACTURER_CODE
daru
PLUGIN_CODE
ABCo
COMPANY_NAME
"Daniel Rudrich"
PRODUCT_NAME
"ABComparison"
BUNDLE_ID
"de.danielrudrich.ABComparison"
FORMATS
${ABC_TARGETS}
COPY_PLUGIN_AFTER_BUILD
TRUE
)
juce_generate_juce_header (ABComparison)
target_sources (
ABComparison
PRIVATE Source/PluginEditor.cpp
Source/PluginEditor.h
Source/PluginProcessor.cpp
Source/PluginProcessor.h
Source/OSCReceiverPlus.h
Source/SettingsComponent.h
)
target_compile_definitions (
ABComparison PUBLIC JUCE_WEB_BROWSER=0 JUCE_USE_CURL=0 JUCE_VST3_CAN_REPLACE_VST2=0
)
target_link_libraries (ABComparison PRIVATE juce::juce_audio_utils juce::juce_osc)
set_property (
TARGET ABComparison PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
)