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.

57 lines
1.9KB

  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. set(CMAKE_FOLDER examples)
  17. add_subdirectory(CMake)
  18. add_subdirectory(DemoRunner)
  19. function(_juce_add_pips)
  20. file(GLOB headers
  21. CONFIGURE_DEPENDS LIST_DIRECTORIES false
  22. "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
  23. if((CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_SYSTEM_NAME MATCHES ".*BSD"))
  24. list(REMOVE_ITEM headers
  25. "${CMAKE_CURRENT_SOURCE_DIR}/CameraDemo.h"
  26. "${CMAKE_CURRENT_SOURCE_DIR}/PushNotificationsDemo.h"
  27. "${CMAKE_CURRENT_SOURCE_DIR}/VideoDemo.h")
  28. elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
  29. list(REMOVE_ITEM headers
  30. "${CMAKE_CURRENT_SOURCE_DIR}/PushNotificationsDemo.h")
  31. endif()
  32. if(NOT (TARGET juce_ara_sdk
  33. AND (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")))
  34. list(REMOVE_ITEM headers
  35. "${CMAKE_CURRENT_SOURCE_DIR}/ARAPluginDemo.h")
  36. endif()
  37. foreach(header IN ITEMS ${headers})
  38. juce_add_pip(${header} added_target)
  39. target_link_libraries(${added_target} PUBLIC
  40. juce::juce_recommended_config_flags
  41. juce::juce_recommended_lto_flags
  42. juce::juce_recommended_warning_flags)
  43. endforeach()
  44. endfunction()
  45. add_subdirectory(Audio)
  46. add_subdirectory(DSP)
  47. add_subdirectory(GUI)
  48. add_subdirectory(Plugins)
  49. add_subdirectory(Utilities)