forked from steinbergmedia/vst3_pluginterfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
92 lines (83 loc) · 2.32 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
# pluginterfaces should actually be a header-only library,
# but it has some sources as well which need compilation.
cmake_minimum_required(VERSION 3.4.3)
project(smtg_pluginterfaces)
# base interfaces
add_library(pluginterfaces STATIC
base/conststringtable.cpp
base/conststringtable.h
base/coreiids.cpp
base/falignpop.h
base/falignpush.h
base/fplatform.h
base/fstrdefs.h
base/ftypes.h
base/funknown.cpp
base/funknown.h
base/futils.h
base/fvariant.h
base/geoconstants.h
base/ibstream.h
base/icloneable.h
base/ierrorcontext.h
base/ipersistent.h
base/ipluginbase.h
base/istringresult.h
base/iupdatehandler.h
base/keycodes.h
base/pluginbasefwd.h
base/smartpointer.h
base/typesizecheck.h
base/ucolorspec.h
base/ustring.cpp
base/ustring.h
)
# vst3 interfaces
if (VST_SDK)
target_sources(pluginterfaces PRIVATE
gui/iplugview.h
gui/iplugviewcontentscalesupport.h
vst/ivstattributes.h
vst/ivstaudioprocessor.h
vst/ivstautomationstate.h
vst/ivstchannelcontextinfo.h
vst/ivstcomponent.h
vst/ivstcontextmenu.h
vst/ivsteditcontroller.h
vst/ivstevents.h
vst/ivsthostapplication.h
vst/ivstinterappaudio.h
vst/ivstmessage.h
vst/ivstmidicontrollers.h
vst/ivstmidilearn.h
vst/ivstnoteexpression.h
vst/ivstparameterchanges.h
vst/ivstphysicalui.h
vst/ivstplugview.h
vst/ivstprefetchablesupport.h
vst/ivstprocesscontext.h
vst/ivstpluginterfacesupport.h
vst/ivstrepresentation.h
vst/ivstunits.h
vst/vstpresetkeys.h
vst/vstpshpack4.h
vst/vsttypes.h
)
endif()
# ski interfaces
if (SKI_SDK)
target_sources(pluginterfaces PRIVATE
host/paramids.cpp
host/paramids.h
)
endif()
target_include_directories(pluginterfaces PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/..
)
smtg_setup_universal_binary(pluginterfaces)
# iOS target
if(SMTG_MAC AND XCODE AND SMTG_IOS_DEVELOPMENT_TEAM)
get_target_property(PLUGINTERFACES_SOURCES pluginterfaces SOURCES)
add_library(pluginterfaces_ios STATIC ${PLUGINTERFACES_SOURCES})
smtg_set_platform_ios(pluginterfaces_ios)
endif()