-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
CMakeLists.txt
58 lines (46 loc) · 1.31 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment target")
project(SmartPedal VERSION 1.5.0)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(modules)
include_directories(modules)
#juce_set_aax_sdk_path(C:/SDKs/AAX_SDK/)
set(JUCE_FORMATS AU VST3)
# Build LV2 only on Linux
if(UNIX AND NOT APPLE)
message(STATUS "Building LV2 plugin format")
list(APPEND JUCE_FORMATS LV2)
endif()
# Build AAX if SDK target exists
if(TARGET juce_aax_sdk)
message(STATUS "Building AAX plugin format")
list(APPEND JUCE_FORMATS AAX)
endif()
juce_add_plugin(SmartPedal
COMPANY_NAME GuitarML
PLUGIN_MANUFACTURER_CODE GtML
PLUGIN_CODE Sgp3
FORMATS ${JUCE_FORMATS}
ProductName "SmartPedal"
LV2URI https://github.com/GuitarML/SmartGuitarPedal
ICON_BIG resources/logo.png
MICROPHONE_PERMISSION_ENABLED TRUE
)
# create JUCE header
juce_generate_juce_header(SmartPedal)
# add sources
add_subdirectory(src)
include_directories(src)
add_subdirectory(resources)
target_compile_definitions(SmartPedal
PUBLIC
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_REPORT_APP_USAGE=0
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0
JUCE_MODAL_LOOPS_PERMITTED=1
)
target_link_libraries(SmartPedal PUBLIC
juce_plugin_modules
)