The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.3KB

  1. # ==============================================================================
  2. #
  3. # This file is part of the JUCE 7 technical preview.
  4. # Copyright (c) 2022 - Raw Material Software Limited
  5. #
  6. # You may use this code under the terms of the GPL v3
  7. # (see www.gnu.org/licenses).
  8. #
  9. # For the technical preview this file cannot be licensed commercially.
  10. #
  11. # JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  12. # EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  13. # DISCLAIMED.
  14. #
  15. # ==============================================================================
  16. juce_add_gui_app(AudioPluginHost
  17. BUNDLE_ID com.juce.pluginhost
  18. ICON_BIG "${CMAKE_CURRENT_SOURCE_DIR}/Source/JUCEAppIcon.png"
  19. MICROPHONE_PERMISSION_ENABLED TRUE
  20. PLUGINHOST_AU TRUE)
  21. juce_generate_juce_header(AudioPluginHost)
  22. target_sources(AudioPluginHost PRIVATE
  23. Source/HostStartup.cpp
  24. Source/Plugins/IOConfigurationWindow.cpp
  25. Source/Plugins/InternalPlugins.cpp
  26. Source/Plugins/PluginGraph.cpp
  27. Source/UI/GraphEditorPanel.cpp
  28. Source/UI/MainHostWindow.cpp)
  29. juce_add_binary_data(AudioPluginHostData SOURCES
  30. ../../examples/Assets/cassette_recorder.wav
  31. ../../examples/Assets/cello.wav
  32. ../../examples/Assets/guitar_amp.wav
  33. ../../examples/Assets/proaudio.path
  34. ../../examples/Assets/reverb_ir.wav
  35. ../../examples/Assets/singing.ogg)
  36. target_compile_definitions(AudioPluginHost PRIVATE
  37. JUCE_ALSA=1
  38. JUCE_DIRECTSOUND=1
  39. JUCE_DISABLE_CAUTIOUS_PARAMETER_ID_CHECKING=1
  40. JUCE_PLUGINHOST_LADSPA=1
  41. JUCE_PLUGINHOST_LV2=1
  42. JUCE_PLUGINHOST_VST3=1
  43. JUCE_PLUGINHOST_VST=0
  44. JUCE_USE_CAMERA=0
  45. JUCE_USE_CDBURNER=0
  46. JUCE_USE_CDREADER=0
  47. JUCE_USE_CURL=0
  48. JUCE_USE_FLAC=0
  49. JUCE_USE_OGGVORBIS=1
  50. JUCE_VST3_HOST_CROSS_PLATFORM_UID=1
  51. JUCE_WASAPI=1
  52. JUCE_WEB_BROWSER=0
  53. PIP_JUCE_EXAMPLES_DIRECTORY_STRING="${JUCE_SOURCE_DIR}/examples")
  54. target_link_libraries(AudioPluginHost PRIVATE
  55. AudioPluginHostData
  56. juce::juce_audio_utils
  57. juce::juce_cryptography
  58. juce::juce_dsp
  59. juce::juce_opengl
  60. juce::juce_recommended_config_flags
  61. juce::juce_recommended_lto_flags
  62. juce::juce_recommended_warning_flags)
  63. juce_add_bundle_resources_directory(AudioPluginHost ../../examples/Assets)