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.

66 lines
2.2KB

  1. # ==============================================================================
  2. #
  3. # This file is part of the JUCE library.
  4. # Copyright (c) 2020 - Raw Material Software Limited
  5. #
  6. # JUCE is an open source library subject to commercial or open-source
  7. # licensing.
  8. #
  9. # By using JUCE, you agree to the terms of both the JUCE 6 End-User License
  10. # Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
  11. #
  12. # End User License Agreement: www.juce.com/juce-6-licence
  13. # Privacy Policy: www.juce.com/juce-privacy-policy
  14. #
  15. # Or: You may also use this code under the terms of the GPL v3 (see
  16. # www.gnu.org/licenses).
  17. #
  18. # JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  19. # EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  20. # DISCLAIMED.
  21. #
  22. # ==============================================================================
  23. juce_add_gui_app(AudioPluginHost
  24. BUNDLE_ID com.juce.pluginhost
  25. ICON_BIG "${CMAKE_CURRENT_SOURCE_DIR}/Source/JUCEAppIcon.png"
  26. MICROPHONE_PERMISSION_ENABLED TRUE
  27. PLUGINHOST_AU TRUE)
  28. juce_generate_juce_header(AudioPluginHost)
  29. target_sources(AudioPluginHost PRIVATE
  30. Source/HostStartup.cpp
  31. Source/Plugins/IOConfigurationWindow.cpp
  32. Source/Plugins/InternalPlugins.cpp
  33. Source/Plugins/PluginGraph.cpp
  34. Source/UI/GraphEditorPanel.cpp
  35. Source/UI/MainHostWindow.cpp)
  36. target_compile_definitions(AudioPluginHost PRIVATE
  37. PIP_JUCE_EXAMPLES_DIRECTORY_STRING="${JUCE_SOURCE_DIR}/examples"
  38. JUCE_ALSA=1
  39. JUCE_DIRECTSOUND=1
  40. JUCE_PLUGINHOST_LADSPA=1
  41. JUCE_PLUGINHOST_VST=0
  42. JUCE_PLUGINHOST_VST3=1
  43. JUCE_USE_CAMERA=0
  44. JUCE_USE_CDBURNER=0
  45. JUCE_USE_CDREADER=0
  46. JUCE_USE_CURL=0
  47. JUCE_USE_FLAC=0
  48. JUCE_USE_OGGVORBIS=1
  49. JUCE_WASAPI=1
  50. JUCE_WEB_BROWSER=0)
  51. target_link_libraries(AudioPluginHost PRIVATE
  52. juce::juce_audio_utils
  53. juce::juce_cryptography
  54. juce::juce_dsp
  55. juce::juce_opengl
  56. juce::juce_recommended_config_flags
  57. juce::juce_recommended_lto_flags
  58. juce::juce_recommended_warning_flags)
  59. juce_add_bundle_resources_directory(AudioPluginHost ../../examples/Assets)