-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
52 lines (43 loc) · 1.45 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
cmake_minimum_required(VERSION 3.15)
project(TubeScreamer VERSION 0.0.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(JUCE)
juce_add_plugin(TubeScreamer
COMPANY_NAME "Barabas Raffai"
PLUGIN_MANUFACTURER_CODE BaRa
PLUGIN_CODE Tube
FORMATS VST3 Standalone
PRODUCT_NAME "TubeScreamer")
juce_generate_juce_header(TubeScreamer)
target_sources(TubeScreamer
PRIVATE
PluginEditor.cpp
PluginProcessor.cpp
FaustParameterFloat.cpp
${CMAKE_CURRENT_BINARY_DIR}/TubeScreamer.h)
set_source_files_properties(PluginProcessor.cpp PROPERTIES COMPILE_OPTIONS
"-Wno-unused-parameter;-Wno-overloaded-virtual")
target_include_directories(TubeScreamer
PRIVATE
.
${CMAKE_CURRENT_BINARY_DIR})
target_compile_definitions(TubeScreamer
PUBLIC
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0)
#TODO remove unused libraries
target_link_libraries(TubeScreamer
PRIVATE
juce::juce_audio_utils
juce::juce_dsp
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags)
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/TubeScreamer.h
COMMAND faust -i -a faustMinimal.h tubescreamer.dsp -o ${CMAKE_CURRENT_BINARY_DIR}/TubeScreamer.h
DEPENDS tubescreamer.dsp
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
VERBATIM)