-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
83 lines (72 loc) · 1.83 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
81
82
83
cmake_minimum_required(VERSION 3.15)
project(MCK_SAMPLER VERSION 0.0.1)
find_library(JACK NAMES jack PATHS /usr/lib /usr/lib64 /usr/lib64/pipewire-0.3/jack)
message(STATUS "Found jack: ${JACK}")
add_subdirectory(deps/JUCE)
add_subdirectory(deps/MckHelper)
add_subdirectory(deps/MckJuce/Content)
set_property(TARGET MckBinaryData PROPERTY POSITION_INDEPENDENT_CODE ON)
juce_add_gui_app(MckSamplerApp
VERSION 0.0.1
COMPANY_NAME MckAudio
PRODUCT_NAME "MckSampler"
)
juce_generate_juce_header(MckSamplerApp)
target_include_directories(MckSamplerApp
PRIVATE
./deps/MckJuce/Source
./deps/concurrentqueue
./deps/MckHelper/include
./deps/q/infra/include
./deps/q/q_lib/include)
target_sources(MckSamplerApp
PRIVATE
./deps/MckJuce/Source/BwLookAndFeel.cpp
./deps/MckJuce/Source/MckLookAndFeel.cpp
src/BarControlComponent.hpp
src/BarMenuComponent.hpp
src/BarPadComponent.hpp
src/BarSelectorComponent.hpp
src/Config.cpp
src/Config.hpp
src/ConfigFile.cpp
src/ConfigFile.hpp
src/Content.cpp
src/Content.hpp
src/Dial.hpp
src/DrumPad.hpp
src/LevelMeter.hpp
src/Main.cpp
src/MainComponent.hpp
src/Processing.cpp
src/Processing.hpp
src/SampleExplorer.cpp
src/SampleExplorer.hpp
src/Types.cpp
src/Types.hpp
)
target_compile_definitions(MckSamplerApp
PRIVATE
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0
JUCE_USE_XINPUT2=1
)
target_link_libraries(MckSamplerApp
PRIVATE
nlohmann_json
MckHelper
MckBinaryData
${JACK}
juce::juce_core
juce::juce_data_structures
juce::juce_events
juce::juce_graphics
juce::juce_gui_basics
juce::juce_dsp
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
)