-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
102 lines (80 loc) · 2.62 KB
/
CMakeLists.txt
File metadata and controls
102 lines (80 loc) · 2.62 KB
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
92
93
94
95
96
97
98
99
100
cmake_minimum_required(VERSION 3.15)
project(SimpleSynth VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add JUCE as a subdirectory
add_subdirectory("/home/ukhirani/Umang/SDKs and Paths/juce-8.0.8-linux/JUCE" JUCE)
if(MSVC)
# Disable specific warnings for MSVC
add_compile_options(/W0) # Disable all warnings
# OR for specific warnings: /wd#### (replace #### with warning number)
else()
# For GCC/Clang
add_compile_options(-w) # Disable all warnings
# OR for specific warnings: -Wno-xxxx (e.g., -Wno-unused-variable)
endif()
# Use pkg-config to find GTK and Pango (and their dependencies)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
pkg_check_modules(WEBKIT2GTK REQUIRED webkit2gtk-4.0)
find_package(CURL REQUIRED)
include_directories(${GTK3_INCLUDE_DIRS} ${WEBKIT2GTK_INCLUDE_DIRS})
## Add include and link flags for GTK and Pango
#include_directories(${GTK3_INCLUDE_DIRS} ${PANGO_INCLUDE_DIRS})
#link_directories(${GTK3_LIBRARY_DIRS} ${PANGO_LIBRARY_DIRS})
#add_definitions(${GTK3_CFLAGS_OTHER} ${PANGO_CFLAGS_OTHER})
# JUCE plugin target
juce_add_plugin(SimpleSynth
COMPANY_NAME "SYNTH8"
PLUGIN_MANUFACTURER_CODE Juce
PLUGIN_CODE SIMP
FORMATS VST3 Standalone
PRODUCT_NAME "SimpleSynth"
IS_SYNTH TRUE
# Add more options as needed
)
# Generate JuceHeader.h for this target
juce_generate_juce_header(SimpleSynth)
#target_sources(SimpleSynth PRIVATE
# Source/PluginProcessor.cpp
# Source/PluginEditor.cpp
#)
# Collect all .cpp files from the 'Source' directory
file(GLOB SYNTH_SOURCES "Source/*.cpp")
# Add Maximilian sources
set(MAXIMILIAN_SOURCES
MaximilianDSP/maximilian.cpp
)
# Add the collected sources to the target
target_sources(SimpleSynth PRIVATE
${SYNTH_SOURCES}
${MAXIMILIAN_SOURCES}
)
# Add include directory for Maximilian
target_include_directories(SimpleSynth PRIVATE
MaximilianDSP
)
# Add the collected sources to the target
target_sources(SimpleSynth PRIVATE
${SYNTH_SOURCES}
)
target_sources(SimpleSynth PRIVATE
Source/Oscillator.cpp
Source/Envelope.cpp
Source/Filter.cpp
Source/ReverbComponent.cpp
Source/Crunch.cpp
Source/Chorus.cpp
Source/Limiter.cpp
Source/PresetPanel.cpp
Source/PresetManager.cpp
)
target_link_libraries(SimpleSynth PRIVATE
juce::juce_audio_utils
juce::juce_audio_processors
juce::juce_dsp
${GTK3_LIBRARIES}
${PANGO_LIBRARIES}
${CURL_LIBRARIES}
# Add more JUCE modules as needed
)