-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (50 loc) · 1.88 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
cmake_minimum_required(VERSION 3.15)
set(PROJECT_NAME NeuralReelSaturator)
project(${PROJECT_NAME} VERSION 0.0.1)
# find_package(JUCE CONFIG REQUIRED) # If you've installed JUCE to your system
# or
add_subdirectory(JUCE) # If you've put JUCE in a subdirectory called JUCE
# If you are building a VST2 or AAX plugin, CMake needs to be told where to find these SDKs on your
# system. This setup should be done before calling `juce_add_plugin`.
# Set the plugin formats you'll be building here.
# Valid formats: AAX Unity VST AU AUv3 Standalone
set(FORMATS AU VST3)
juce_add_plugin(${PROJECT_NAME}
COPY_PLUGIN_AFTER_BUILD TRUE
# VST3_COPY_DIR C:/Program Files/Common Files/VST3
PLUGIN_MANUFACTURER_CODE Juce
PLUGIN_CODE Mute
FORMATS ${FORMATS}
PRODUCT_NAME "Akai4000DB-PreAmp")
# Set language version
target_compile_features (${PROJECT_NAME} PRIVATE cxx_std_17)
# create a JuceHeader.h
juce_generate_juce_header(${PROJECT_NAME})
# add sources
add_subdirectory(Source)
include_directories(Source)
add_subdirectory(Models)
add_subdirectory(RTNeural)
# Build LV2 only on Linux
if(UNIX AND NOT APPLE)
message(STATUS "Building LV2 plugin format")
list(APPEND JUCE_FORMATS LV2)
endif()
target_compile_definitions(${PROJECT_NAME} PUBLIC
# JUCE_WEB_BROWSER and JUCE_USE_CURL would be on by default, but you might not need them.
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_REPORT_APP_USAGE=0
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0)
target_link_libraries (${PROJECT_NAME} PRIVATE
# JUCE Modules
juce::juce_audio_processors
juce::juce_audio_plugin_client
juce::juce_audio_utils
# juce::juce_dsp
# Recommended flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
juce::juce_recommended_config_flags)
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC RTNeural)