-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
127 lines (114 loc) · 3.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
cmake_minimum_required(VERSION 3.14.0)
# suzumushi
option(SMTG_ENABLE_VST3_PLUGIN_EXAMPLES "Enable VST 3 Plug-in Examples" OFF)
option(SMTG_ENABLE_VST3_HOSTING_EXAMPLES "Enable VST 3 Hosting Examples" OFF)
unset(SMTG_CREATE_PLUGIN_LINK)
set (SMTG_CXX_STANDARD "20")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13 CACHE STRING "")
set(vst3sdk_SOURCE_DIR D:/VST/VST_SDK/vst3sdk)
if(NOT vst3sdk_SOURCE_DIR)
message(FATAL_ERROR "Path to VST3 SDK is empty!")
endif()
project(SoundObject
# This is your plug-in version number. Change it here only.
# Version number symbols usable in C++ can be found in
# source/version.h and ${PROJECT_BINARY_DIR}/projectversion.h.
VERSION 3.1.1.0
DESCRIPTION "SoundObject"
)
set(SMTG_VSTGUI_ROOT "${vst3sdk_SOURCE_DIR}")
add_subdirectory(${vst3sdk_SOURCE_DIR} ${PROJECT_BINARY_DIR}/vst3sdk)
smtg_enable_vst3_sdk()
smtg_add_vst3plugin(SoundObject
source/Aachen_KEMAR/IR_TBL_L_44.h
source/Aachen_KEMAR/IR_TBL_R_44.h
source/Aachen_KEMAR/IR_TBL_L_48.h
source/Aachen_KEMAR/IR_TBL_R_48.h
source/Aachen_KEMAR/IR_TBL_L_96.h
source/Aachen_KEMAR/IR_TBL_R_96.h
source/York_KEMAR/IR_TBL_L_44.h
source/York_KEMAR/IR_TBL_R_44.h
source/York_KEMAR/IR_TBL_L_48.h
source/York_KEMAR/IR_TBL_R_48.h
source/York_KEMAR/IR_TBL_L_96.h
source/York_KEMAR/IR_TBL_R_96.h
source/York_KU100/IR_TBL_L_44.h
source/York_KU100/IR_TBL_R_44.h
source/York_KU100/IR_TBL_L_48.h
source/York_KU100/IR_TBL_R_48.h
source/York_KU100/IR_TBL_L_96.h
source/York_KU100/IR_TBL_R_96.h
source/SO2ndordIIRfilters.h
source/SOcids.h
source/SOconfig.h
source/SOcontroller.h
source/SOcontroller.cpp
source/SODDL.h
source/SODSPparam.h
source/SODSPparam.cpp
source/SOentry.cpp
source/SOextparam.h
source/SOextparam.cpp
source/SOLPF.h
source/SOparam.h
source/SOpinna.h
source/SOprocessor.h
source/SOprocessor.cpp
source/SOTextEdit.h
source/SOTextEdit.cpp
source/SOTextEditcreator.cpp
source/SOudsampling.h
source/SOvst3editor.h
source/SOvst3editor.cpp
source/SOXYPad.h
source/SOXYPad.cpp
source/SOXYPadcreator.cpp
source/version.h
)
#- VSTGUI Wanted ----
if(SMTG_ENABLE_VSTGUI_SUPPORT)
target_sources(SoundObject
PRIVATE
resource/SoundObject.uidesc
)
target_link_libraries(SoundObject
PRIVATE
vstgui_support
)
smtg_target_add_plugin_resources(SoundObject
RESOURCES
"resource/SoundObject.uidesc"
)
endif(SMTG_ENABLE_VSTGUI_SUPPORT)
# -------------------
smtg_target_add_plugin_snapshots (SoundObject
RESOURCES
resource/46570030EE935D3495AAEFCF49F7F2CF_snapshot.png
resource/46570030EE935D3495AAEFCF49F7F2CF_snapshot_2.0x.png
)
target_link_libraries(SoundObject
PRIVATE
sdk
)
smtg_target_configure_version_file(SoundObject)
if(SMTG_MAC)
smtg_target_set_bundle(SoundObject
BUNDLE_IDENTIFIER foobar
COMPANY_NAME "suzumushi"
)
smtg_target_set_debug_executable(SoundObject
"/Applications/VST3PluginTestHost.app"
"--pluginfolder;$(BUILT_PRODUCTS_DIR)"
)
elseif(SMTG_WIN)
target_sources(SoundObject PRIVATE
resource/win32resource.rc
)
if(MSVC)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT SoundObject)
smtg_target_set_debug_executable(SoundObject
"$(ProgramW6432)/Steinberg/VST3PluginTestHost/VST3PluginTestHost.exe"
"--pluginfolder \"$(OutDir)/\""
)
endif()
endif(SMTG_MAC)