-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCMakeLists.txt
80 lines (69 loc) · 2.67 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
# ==============================================================================
#
# Copyright 2021, 2022 Suzuki Kengo
#
# Simple Reverb is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Simple Reverb is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Simple Reverb. If not, see <http://www.gnu.org/licenses/>.
#
# ==============================================================================
cmake_minimum_required(VERSION 3.25)
# These variables should be set before the first project() command is called.
# Additionally, they should be set as cache variables so that their values can be overridden.
# References:
# - https://cmake.org/cmake/help/v3.25/variable/CMAKE_OSX_ARCHITECTURES.html
# - https://cmake.org/cmake/help/v3.25/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "Build architectures for macOS")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum macOS version required")
project(simple_reverb VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
add_subdirectory(lib/JUCE)
juce_add_plugin(simple_reverb
COMPANY_NAME "Kengo"
COMPANY_WEBSITE "https://kengo.dev"
COMPANY_EMAIL "[email protected]"
BUNDLE_ID "dev.kengo.${PROJECT_NAME}"
PLUGIN_MANUFACTURER_CODE "Kngo"
PLUGIN_CODE "Srvb"
FORMATS Standalone VST3 AU
COPY_PLUGIN_AFTER_BUILD TRUE
PLUGIN_NAME "Simple Reverb"
)
target_compile_features(simple_reverb PUBLIC cxx_std_20)
target_compile_definitions(simple_reverb PUBLIC JUCE_WEB_BROWSER=0 JUCE_USE_CURL=0 JUCE_VST3_CAN_REPLACE_VST2=0)
target_sources(
simple_reverb
PRIVATE
src/PluginEditor.cpp
src/PluginProcessor.cpp
src/ui/EditorContent.cpp
src/ui/Dial.cpp
src/ui/FreezeButton.cpp
src/ui/EditorLnf.cpp
)
juce_add_binary_data(binary_data SOURCES
res/FreezeIcon.svg
res/UbuntuRegular.ttf
)
target_link_libraries(
simple_reverb
PRIVATE
binary_data
juce::juce_audio_utils
juce::juce_dsp
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
)