-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
56 lines (45 loc) · 1.26 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment target")
project(Prince VERSION 1.0.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 Standalone)
# 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(Prince
COMPANY_NAME GuitarML
PLUGIN_MANUFACTURER_CODE GtML
PLUGIN_CODE Pri3
FORMATS ${JUCE_FORMATS}
ProductName "Prince"
LV2URI https://github.com/GuitarML/Prince
ICON_BIG resources/logo.png
MICROPHONE_PERMISSION_ENABLED TRUE
)
# create JUCE header
juce_generate_juce_header(Prince)
# add sources
add_subdirectory(Source)
include_directories(Source)
add_subdirectory(resources)
target_compile_definitions(Prince
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
)
target_link_libraries(Prince PUBLIC
juce_plugin_modules
)