-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
70 lines (56 loc) · 1.83 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
cmake_minimum_required(VERSION 3.14.0)
include(FetchContent)
set(CMAKE_CXX_STANDARD 17)
project(gain-automator)
add_subdirectory(external)
smtg_enable_vst3_sdk()
# Set CMAKE_CXX_STANDARD again as a workaround for VST 3 SDK setting it to 14
set(CMAKE_CXX_STANDARD 17)
smtg_add_vst3plugin(Gain-Automator
source/version.h
source/gain_automator_cids.h
source/gain_automator_processor.h
source/gain_automator_processor.cpp
source/gain_automator_controller.h
source/gain_automator_controller.cpp
source/gain_automator_entry.cpp
)
target_link_libraries(Gain-Automator
PRIVATE
sdk
param-tool-box
)
#- VSTGUI Wanted ----
if(SMTG_ADD_VSTGUI)
target_sources(Gain-Automator
PRIVATE
resource/gain_automator_editor.uidesc
)
target_link_libraries(Gain-Automator
PRIVATE
vstgui_support
)
smtg_add_vst3_resource(Gain-Automator "resource/gain_automator_editor.uidesc")
endif()
# -------------------
smtg_add_vst3_resource(Gain-Automator resource/big_knob.png)
smtg_add_vst3_resource(Gain-Automator resource/big_knob_2.0x.png)
smtg_add_vst3_snapshot(Gain-Automator resource/CCA38A9855E653C88080AD5A9F58C064_snapshot.png)
smtg_add_vst3_snapshot(Gain-Automator resource/CCA38A9855E653C88080AD5A9F58C064_snapshot_2.0x.png)
if(SMTG_MAC)
smtg_set_bundle(Gain-Automator INFOPLIST
"${CMAKE_CURRENT_LIST_DIR}/resource/Info.plist"
PREPROCESS
)
elseif(SMTG_WIN)
target_sources(Gain-Automator PRIVATE
resource/win32resource.rc
)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Gain-Automator)
set_target_properties(Gain-Automator PROPERTIES
VS_DEBUGGER_COMMAND
"$(ProgramW6432)/Steinberg/VST3PluginTestHost/VST3PluginTestHost.exe"
VS_DEBUGGER_COMMAND_ARGUMENTS
" --pluginfolder \"$(OutDir)\" "
)
endif()