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.

72 lines
2.3KB

  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(DemoRunner
  24. BUNDLE_ID com.juce.demorunner
  25. ICON_BIG ${CMAKE_CURRENT_SOURCE_DIR}/Source/JUCEAppIcon.png
  26. NEEDS_CURL TRUE
  27. NEEDS_WEB_BROWSER TRUE
  28. MICROPHONE_PERMISSION_ENABLED TRUE
  29. CAMERA_PERMISSION_ENABLED TRUE
  30. BLUETOOTH_PERMISSION_ENABLED TRUE
  31. FILE_SHARING_ENABLED TRUE
  32. DOCUMENT_BROWSER_ENABLED TRUE)
  33. juce_generate_juce_header(DemoRunner)
  34. target_sources(DemoRunner PRIVATE
  35. Source/Demos/DemoPIPs1.cpp
  36. Source/Demos/DemoPIPs2.cpp
  37. Source/Demos/JUCEDemos.cpp
  38. Source/Main.cpp
  39. Source/UI/DemoContentComponent.cpp
  40. Source/UI/MainComponent.cpp)
  41. target_compile_definitions(DemoRunner PRIVATE
  42. PIP_JUCE_EXAMPLES_DIRECTORY_STRING="${JUCE_SOURCE_DIR}/examples"
  43. JUCE_ALLOW_STATIC_NULL_VARIABLES=0
  44. JUCE_DEMO_RUNNER=1
  45. JUCE_JACK=1
  46. JUCE_STRICT_REFCOUNTEDPOINTER=1
  47. JUCE_UNIT_TESTS=1
  48. JUCE_USE_CAMERA=1
  49. JUCE_USE_CURL=1
  50. JUCE_USE_MP3AUDIOFORMAT=1
  51. JUCE_WEB_BROWSER=1)
  52. target_link_libraries(DemoRunner PRIVATE
  53. juce::juce_analytics
  54. juce::juce_audio_utils
  55. juce::juce_blocks_basics
  56. juce::juce_box2d
  57. juce::juce_dsp
  58. juce::juce_opengl
  59. juce::juce_osc
  60. juce::juce_product_unlocking
  61. juce::juce_video
  62. juce::juce_recommended_config_flags
  63. juce::juce_recommended_lto_flags
  64. juce::juce_recommended_warning_flags)
  65. juce_add_bundle_resources_directory(DemoRunner ../Assets)