-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
91 lines (80 loc) · 2.72 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
cmake_minimum_required(VERSION 3.12)
project(stone-phaser VERSION "0.1.3")
add_subdirectory("dpf")
option(STONE_PHASER_BUILD_UI "Build plugin UI" ON)
if(STONE_PHASER_BUILD_UI)
set(STONE_PHASER_UI_OPTIONS UI_TYPE "cairo")
else()
set(STONE_PHASER_UI_OPTIONS)
endif()
#
dpf_add_plugin(stone-phaser
${STONE_PHASER_UI_OPTIONS}
TARGETS lv2 vst2 ladspa
FILES_DSP
"plugins/stone-phaser/PhaserPlugin.cpp"
FILES_UI
"plugins/stone-phaser/PhaserUI.cpp"
"plugins/stone-phaser/Artwork.cpp"
"plugins/stone-phaser/ui/components/KnobSkin.cpp"
"plugins/stone-phaser/ui/components/SkinIndicator.cpp"
"plugins/stone-phaser/ui/components/SkinSlider.cpp"
"plugins/stone-phaser/ui/components/SkinToggleButton.cpp"
"plugins/stone-phaser/ui/FontEngine.cpp"
"plugins/stone-phaser/ui/Fontstash.cpp"
"plugins/stone-phaser/ui/Cairo++.cpp"
FILES_COMMON
"plugins/stone-phaser/PhaserShared.cpp"
"plugins/stone-phaser/gen/StonePhaserDsp.cpp")
target_include_directories(stone-phaser
PUBLIC
"plugins/stone-phaser"
"plugins/stone-phaser/meta"
"plugins/stone-phaser/gen"
"thirdparty/blink"
"thirdparty/fontstash"
"thirdparty/stb")
if(STONE_PHASER_BUILD_UI)
target_compile_definitions(stone-phaser PUBLIC "DISTRHO_PLUGIN_HAS_UI=1")
endif()
if(MSVC)
target_compile_options(stone-phaser PUBLIC "/fp:fast")
else()
target_compile_options(stone-phaser PUBLIC "-ffast-math")
endif()
#
dpf_add_plugin(stone-phaser-stereo
${STONE_PHASER_UI_OPTIONS}
TARGETS lv2 vst2 ladspa
UI_TYPE "${STONE_PHASER_UI_TYPE}"
FILES_DSP
"plugins/stone-phaser-stereo/PhaserPlugin.cpp"
FILES_UI
"plugins/stone-phaser-stereo/PhaserUI.cpp"
"plugins/stone-phaser-stereo/Artwork.cpp"
"plugins/stone-phaser-stereo/ui/components/KnobSkin.cpp"
"plugins/stone-phaser-stereo/ui/components/SkinIndicator.cpp"
"plugins/stone-phaser-stereo/ui/components/SkinSlider.cpp"
"plugins/stone-phaser-stereo/ui/components/SkinToggleButton.cpp"
"plugins/stone-phaser-stereo/ui/FontEngine.cpp"
"plugins/stone-phaser-stereo/ui/Fontstash.cpp"
"plugins/stone-phaser-stereo/ui/Cairo++.cpp"
FILES_COMMON
"plugins/stone-phaser-stereo/PhaserShared.cpp"
"plugins/stone-phaser-stereo/gen/StonePhaserDsp.cpp")
target_include_directories(stone-phaser-stereo
PUBLIC
"plugins/stone-phaser-stereo"
"plugins/stone-phaser-stereo/meta"
"plugins/stone-phaser-stereo/gen"
"thirdparty/blink"
"thirdparty/fontstash"
"thirdparty/stb")
if(STONE_PHASER_BUILD_UI)
target_compile_definitions(stone-phaser-stereo PUBLIC "DISTRHO_PLUGIN_HAS_UI=1")
endif()
if(MSVC)
target_compile_options(stone-phaser-stereo PUBLIC "/fp:fast")
else()
target_compile_options(stone-phaser-stereo PUBLIC "-ffast-math")
endif()