CMakeLists.txt (1442B)
1 cmake_minimum_required(VERSION 3.15) 2 set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment target") 3 project(Proteus VERSION 1.2.0) 4 5 set(CMAKE_CXX_STANDARD 17) 6 7 add_subdirectory(modules) 8 include_directories(modules) 9 10 #juce_set_aax_sdk_path(C:/SDKs/AAX_SDK/) 11 12 set(JUCE_FORMATS AU VST3 Standalone) 13 14 # Build LV2 only on Linux 15 if(UNIX AND NOT APPLE) 16 message(STATUS "Building LV2 plugin format") 17 list(APPEND JUCE_FORMATS LV2) 18 endif() 19 20 # Build AAX if SDK target exists 21 if(TARGET juce_aax_sdk) 22 message(STATUS "Building AAX plugin format") 23 list(APPEND JUCE_FORMATS AAX) 24 endif() 25 26 juce_add_plugin(Proteus 27 COMPANY_NAME GuitarML 28 PLUGIN_MANUFACTURER_CODE GtML 29 PLUGIN_CODE Prt3 30 FORMATS ${JUCE_FORMATS} 31 ProductName "Proteus" 32 LV2URI https://github.com/GuitarML/Proteus 33 ICON_BIG resources/logo.png 34 35 VST3_CATEGORIES Fx Distortion 36 AU_MAIN_TYPE kAudioUnitType_Effect 37 AAX_CATEGORY AAX_ePlugInCategory_Harmonic 38 39 MICROPHONE_PERMISSION_ENABLED TRUE 40 ) 41 42 # create JUCE header 43 juce_generate_juce_header(Proteus) 44 45 # add sources 46 add_subdirectory(src) 47 include_directories(src) 48 add_subdirectory(resources) 49 50 target_compile_definitions(Proteus 51 PUBLIC 52 JUCE_DISPLAY_SPLASH_SCREEN=0 53 JUCE_REPORT_APP_USAGE=0 54 JUCE_WEB_BROWSER=0 55 JUCE_USE_CURL=0 56 JUCE_VST3_CAN_REPLACE_VST2=0 57 JUCE_MODAL_LOOPS_PERMITTED=1 58 ) 59 60 target_link_libraries(Proteus PUBLIC 61 juce_plugin_modules 62 ) 63