forked from GuitarML/NeuralPi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
52 lines (42 loc) · 1.32 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
cmake_minimum_required(VERSION 3.15)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment target")
project(NeuralPi VERSION 1.1.0)
set(CMAKE_CXX_STANDARD 17)
set(RTNEURAL_XSIMD ON CACHE BOOL "Use RTNeural with this backend" FORCE)
add_subdirectory(modules/RTNeural)
add_subdirectory(modules)
include_directories(modules)
juce_add_plugin(NeuralPi
COMPANY_NAME GuitarML
PLUGIN_MANUFACTURER_CODE GtML
PLUGIN_CODE Npi3
FORMATS AU VST3 Standalone LV2
ProductName "NeuralPi"
LV2_URI https://github.com/GuitarML/NeuralPi
ICON_BIG resources/logo.png
MICROPHONE_PERMISSION_ENABLED TRUE
)
# create JUCE header
juce_generate_juce_header(NeuralPi)
# add sources
add_subdirectory(Source)
include_directories(Source)
add_subdirectory(resources)
target_compile_definitions(NeuralPi
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(NeuralPi PUBLIC
juce_plugin_modules
)
# we need these flags for notarization on MacOS
option(MACOS_RELEASE "Set build flags for MacOS Release" OFF)
if(MACOS_RELEASE)
message(STATUS "Setting MacOS release flags...")
set_target_properties(NeuralPi_Standalone PROPERTIES
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES)
endif()