DISTRHO Plugin Framework
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.

42 lines
1.1KB

  1. # DISTRHO Plugin Framework (DPF)
  2. # Copyright (C) 2021 Jean Pierre Cimalando <jp-dev@inbox.ru>
  3. #
  4. # SPDX-License-Identifier: ISC
  5. cmake_minimum_required(VERSION 3.7)
  6. project(DPF)
  7. # check if we are building from this project, or are imported by another
  8. if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
  9. set(DPF_BUILD_FROM_HERE TRUE)
  10. else()
  11. set(DPF_BUILD_FROM_HERE FALSE)
  12. endif()
  13. option(DPF_LIBRARIES "Build the libraries" "${DPF_BUILD_FROM_HERE}")
  14. option(DPF_EXAMPLES "Build the examples" "${DPF_BUILD_FROM_HERE}")
  15. set(DPF_ROOT_DIR "${PROJECT_SOURCE_DIR}" CACHE INTERNAL
  16. "Root directory of the DISTRHO Plugin Framework.")
  17. list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
  18. include(DPF-plugin)
  19. if(DPF_LIBRARIES)
  20. dpf__add_dgl_cairo()
  21. dpf__add_dgl_opengl()
  22. endif()
  23. if(DPF_EXAMPLES)
  24. add_subdirectory("examples/CairoUI")
  25. #add_subdirectory("examples/ExternalUI")
  26. add_subdirectory("examples/FileHandling")
  27. add_subdirectory("examples/Info")
  28. add_subdirectory("examples/Latency")
  29. add_subdirectory("examples/Meters")
  30. add_subdirectory("examples/MidiThrough")
  31. add_subdirectory("examples/Parameters")
  32. add_subdirectory("examples/States")
  33. endif()