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.

65 lines
2.1KB

  1. # ==============================================================================
  2. #
  3. # This file is part of the JUCE 6 technical preview.
  4. # Copyright (c) 2020 - ROLI Ltd.
  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. IPHONE_SCREEN_ORIENTATIONS portrait landscape
  27. IPAD_SCREEN_ORIENTATIONS portrait landscape)
  28. juce_generate_juce_header(DemoRunner)
  29. target_sources(DemoRunner PRIVATE
  30. Source/Demos/DemoPIPs1.cpp
  31. Source/Demos/DemoPIPs2.cpp
  32. Source/Demos/JUCEDemos.cpp
  33. Source/Main.cpp
  34. Source/UI/DemoContentComponent.cpp
  35. Source/UI/MainComponent.cpp)
  36. target_compile_definitions(DemoRunner PRIVATE
  37. PIP_JUCE_EXAMPLES_DIRECTORY_STRING="${JUCE_SOURCE_DIR}/examples"
  38. JUCE_ALLOW_STATIC_NULL_VARIABLES=0
  39. JUCE_DEMO_RUNNER=1
  40. JUCE_STRICT_REFCOUNTEDPOINTER=1
  41. JUCE_UNIT_TESTS=1
  42. JUCE_USE_CAMERA=1
  43. JUCE_USE_CURL=1
  44. JUCE_USE_MP3AUDIOFORMAT=1
  45. JUCE_WEB_BROWSER=1)
  46. target_link_libraries(DemoRunner PRIVATE
  47. juce::juce_analytics
  48. juce::juce_audio_utils
  49. juce::juce_blocks_basics
  50. juce::juce_box2d
  51. juce::juce_dsp
  52. juce::juce_opengl
  53. juce::juce_osc
  54. juce::juce_product_unlocking
  55. juce::juce_video)
  56. if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
  57. juce_add_bundle_resources_directory(DemoRunner ../Assets)
  58. endif()