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.

75 lines
2.7KB

  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(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. REQUIRES_FULL_SCREEN FALSE
  27. IPAD_SCREEN_ORIENTATIONS UIInterfaceOrientationPortrait
  28. UIInterfaceOrientationPortraitUpsideDown
  29. UIInterfaceOrientationLandscapeLeft
  30. UIInterfaceOrientationLandscapeRight
  31. IPHONE_SCREEN_ORIENTATIONS UIInterfaceOrientationPortrait
  32. UIInterfaceOrientationPortraitUpsideDown
  33. UIInterfaceOrientationLandscapeLeft
  34. UIInterfaceOrientationLandscapeRight)
  35. juce_generate_juce_header(DemoRunner)
  36. target_sources(DemoRunner PRIVATE
  37. Source/Demos/DemoPIPs1.cpp
  38. Source/Demos/DemoPIPs2.cpp
  39. Source/Demos/JUCEDemos.cpp
  40. Source/Main.cpp
  41. Source/UI/DemoContentComponent.cpp
  42. Source/UI/MainComponent.cpp)
  43. target_compile_definitions(DemoRunner PRIVATE
  44. PIP_JUCE_EXAMPLES_DIRECTORY_STRING="${JUCE_SOURCE_DIR}/examples"
  45. JUCE_ALLOW_STATIC_NULL_VARIABLES=0
  46. JUCE_DEMO_RUNNER=1
  47. JUCE_PLUGINHOST_VST3=1
  48. JUCE_STRICT_REFCOUNTEDPOINTER=1
  49. JUCE_UNIT_TESTS=1
  50. JUCE_USE_CAMERA=1
  51. JUCE_USE_CURL=1
  52. JUCE_USE_MP3AUDIOFORMAT=1
  53. JUCE_WEB_BROWSER=1)
  54. target_link_libraries(DemoRunner PRIVATE
  55. juce::juce_analytics
  56. juce::juce_audio_utils
  57. juce::juce_box2d
  58. juce::juce_dsp
  59. juce::juce_opengl
  60. juce::juce_osc
  61. juce::juce_product_unlocking
  62. juce::juce_video
  63. juce::juce_recommended_config_flags
  64. juce::juce_recommended_lto_flags
  65. juce::juce_recommended_warning_flags)
  66. foreach(folder IN ITEMS ../Assets ../Audio ../DSP ../GUI ../Utilities)
  67. juce_add_bundle_resources_directory(DemoRunner ${folder})
  68. endforeach()