-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
60 lines (50 loc) · 1.49 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
cmake_minimum_required(VERSION 3.15)
project(PLUGALYZER VERSION 0.0.1)
# embrace the future, baby!
set(CMAKE_CXX_STANDARD 20)
# include JUCE from submodule
add_subdirectory(JUCE)
juce_add_console_app(Plugalyzer
COMPANY_NAME CrushedPixel
)
# include CLI11 from submodule
add_subdirectory(CLI11)
target_include_directories(Plugalyzer PRIVATE CLI11/include)
#include nlohmann/json from submodule
set(JSON_BuildTests OFF CACHE INTERNAL "")
set(JSON_Install OFF CACHE INTERNAL "")
add_subdirectory(json)
target_include_directories(Plugalyzer PRIVATE json/include)
target_sources(Plugalyzer
PRIVATE
Source/main.cpp
Source/Utils.cpp
Source/PresetLoadingExtensionsVisitor.cpp
Source/ProcessCommand.cpp
Source/ListParametersCommand.cpp
Source/Automation.cpp
)
target_compile_definitions(Plugalyzer
PRIVATE
JUCE_APPLICATION_NAME_STRING="$<TARGET_PROPERTY:Plugalyzer,JUCE_PRODUCT_NAME>"
JUCE_APPLICATION_VERSION_STRING="$<TARGET_PROPERTY:Plugalyzer,JUCE_VERSION>"
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_PLUGINHOST_VST3=1
JUCE_PLUGINHOST_AU=1
JUCE_PLUGINHOST_LADSPA=1
JUCE_PLUGINHOST_LV2=1
)
target_link_libraries(Plugalyzer
PRIVATE
juce::juce_core
juce::juce_audio_basics
juce::juce_audio_processors
juce::juce_audio_formats
juce::juce_audio_devices
juce::juce_audio_utils
CLI11::CLI11
nlohmann_json::nlohmann_json
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_warning_flags)