forked from steinbergmedia/vst3_public_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
174 lines (162 loc) · 5.04 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
cmake_minimum_required(VERSION 3.4.3)
project(smtg_public_sdk)
#--sdk common----------------
add_library(sdk_common
STATIC
source/common/commoniids.cpp
source/common/openurl.cpp
source/common/openurl.h
source/common/systemclipboard.h
source/common/systemclipboard_win32.cpp
source/common/threadchecker_linux.cpp
source/common/threadchecker_win32.cpp
source/common/threadchecker.h
source/vst/vstpresetfile.cpp
source/vst/vstpresetfile.h
)
if(SMTG_MAC)
target_sources(sdk_common
PRIVATE
source/common/threadchecker_mac.mm
source/common/systemclipboard_mac.mm
)
endif(SMTG_MAC)
if(NOT VST_SDK)
target_sources(sdk_common
PRIVATE
source/common/pvaluecontainer.cpp
source/common/pvaluecontainer.h
)
endif(NOT VST_SDK)
# add dependencies
target_link_libraries(sdk_common
PUBLIC
base
pluginterfaces
)
target_include_directories(sdk_common
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/..
)
smtg_setup_universal_binary(sdk_common)
#--sdk plugin----------------
add_library(sdk
STATIC
source/common/pluginview.cpp
source/common/pluginview.h
source/main/pluginfactory.cpp
source/main/pluginfactory.h
)
# Additional sources for VST3 SDK usage
if(VST_SDK)
target_sources(sdk
PRIVATE
source/main/moduleinit.cpp
source/main/moduleinit.h
source/vst/utility/processcontextrequirements.h
source/vst/utility/ringbuffer.h
source/vst/utility/stringconvert.cpp
source/vst/utility/stringconvert.h
source/vst/utility/vst2persistence.h
source/vst/utility/vst2persistence.cpp
source/vst/vstaudioeffect.cpp
source/vst/vstaudioeffect.h
source/vst/vstbus.cpp
source/vst/vstbus.h
source/vst/vstbypassprocessor.h
source/vst/vstcomponent.cpp
source/vst/vstcomponent.h
source/vst/vstcomponentbase.cpp
source/vst/vstcomponentbase.h
source/vst/vsteditcontroller.cpp
source/vst/vsteditcontroller.h
source/vst/vsteventshelper.h
source/vst/vsthelpers.h
source/vst/vstinitiids.cpp
source/vst/vstnoteexpressiontypes.cpp
source/vst/vstnoteexpressiontypes.h
source/vst/vstparameters.cpp
source/vst/vstparameters.h
source/vst/vstrepresentation.cpp
source/vst/vstrepresentation.h
)
endif(VST_SDK)
# add dependencies
target_link_libraries(sdk
PUBLIC
sdk_common
)
target_include_directories(sdk
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/..
)
smtg_setup_universal_binary(sdk)
get_target_property(sdk_SOURCES sdk SOURCES)
# iOS target
if(SMTG_MAC AND XCODE AND SMTG_IOS_DEVELOPMENT_TEAM)
add_library(sdk_ios
STATIC
${sdk_SOURCES}
)
smtg_set_platform_ios(sdk_ios)
set_target_properties(sdk_ios
PROPERTIES
${SDK_IDE_LIBS_FOLDER}
)
target_link_libraries(sdk_ios
PUBLIC
base_ios
pluginterfaces_ios
)
endif(SMTG_MAC AND XCODE AND SMTG_IOS_DEVELOPMENT_TEAM)
#--for hosting----------------
add_library(sdk_hosting
STATIC
source/vst/hosting/connectionproxy.cpp
source/vst/hosting/connectionproxy.h
source/vst/hosting/eventlist.cpp
source/vst/hosting/eventlist.h
source/vst/hosting/hostclasses.cpp
source/vst/hosting/hostclasses.h
source/vst/hosting/module.cpp
source/vst/hosting/module.h
source/vst/hosting/parameterchanges.cpp
source/vst/hosting/parameterchanges.h
source/vst/hosting/pluginterfacesupport.cpp
source/vst/hosting/pluginterfacesupport.h
source/vst/hosting/processdata.cpp
source/vst/hosting/processdata.h
source/vst/utility/optional.h
source/vst/utility/stringconvert.cpp
source/vst/utility/stringconvert.h
source/vst/utility/uid.h
source/vst/utility/versionparser.h
source/vst/vstinitiids.cpp
)
# add dependencies
target_link_libraries(sdk_hosting
PUBLIC
sdk_common
)
target_include_directories(sdk_hosting
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/..
)
smtg_setup_universal_binary(sdk_hosting)
get_target_property(sdk_hosting_SOURCES sdk_hosting SOURCES)
# iOS target for hosting
if(SMTG_MAC AND XCODE AND SMTG_IOS_DEVELOPMENT_TEAM)
add_library(sdk_hosting_ios STATIC
${sdk_hosting_SOURCES}
)
smtg_set_platform_ios(sdk_hosting_ios)
set_target_properties(sdk_hosting_ios
PROPERTIES
${SDK_IDE_LIBS_FOLDER}
)
target_link_libraries(sdk_hosting_ios
PUBLIC
base_ios
pluginterfaces_ios
)
endif(SMTG_MAC AND XCODE AND SMTG_IOS_DEVELOPMENT_TEAM)