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.

64 lines
2.1KB

  1. # ==============================================================================
  2. #
  3. # This file is part of the JUCE 6 technical preview.
  4. # Copyright (c) 2020 - 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 this technical preview, this file is not subject to commercial licensing.
  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(DemoRunner
  17. BUNDLE_ID com.juce.demorunner
  18. ICON_BIG ${CMAKE_CURRENT_SOURCE_DIR}/Source/JUCEAppIcon.png
  19. NEEDS_CURL TRUE
  20. NEEDS_WEB_BROWSER TRUE
  21. MICROPHONE_PERMISSION_ENABLED TRUE
  22. CAMERA_PERMISSION_ENABLED TRUE
  23. BLUETOOTH_PERMISSION_ENABLED TRUE
  24. FILE_SHARING_ENABLED TRUE
  25. DOCUMENT_BROWSER_ENABLED TRUE)
  26. juce_generate_juce_header(DemoRunner)
  27. target_sources(DemoRunner PRIVATE
  28. Source/Demos/DemoPIPs1.cpp
  29. Source/Demos/DemoPIPs2.cpp
  30. Source/Demos/JUCEDemos.cpp
  31. Source/Main.cpp
  32. Source/UI/DemoContentComponent.cpp
  33. Source/UI/MainComponent.cpp)
  34. target_compile_definitions(DemoRunner PRIVATE
  35. PIP_JUCE_EXAMPLES_DIRECTORY_STRING="${JUCE_SOURCE_DIR}/examples"
  36. JUCE_ALLOW_STATIC_NULL_VARIABLES=0
  37. JUCE_DEMO_RUNNER=1
  38. JUCE_STRICT_REFCOUNTEDPOINTER=1
  39. JUCE_UNIT_TESTS=1
  40. JUCE_USE_CAMERA=1
  41. JUCE_USE_CURL=1
  42. JUCE_USE_MP3AUDIOFORMAT=1
  43. JUCE_WEB_BROWSER=1)
  44. target_link_libraries(DemoRunner PRIVATE
  45. juce::juce_analytics
  46. juce::juce_audio_utils
  47. juce::juce_blocks_basics
  48. juce::juce_box2d
  49. juce::juce_dsp
  50. juce::juce_opengl
  51. juce::juce_osc
  52. juce::juce_product_unlocking
  53. juce::juce_video
  54. juce::juce_recommended_config_flags
  55. juce::juce_recommended_lto_flags
  56. juce::juce_recommended_warning_flags)
  57. juce_add_bundle_resources_directory(DemoRunner ../Assets)