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.

51 lines
1.4KB

  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. # ensure c++11 at minimum, the parent project can override
  8. if(NOT CMAKE_CXX_STANDARD)
  9. set(CMAKE_CXX_STANDARD 11)
  10. endif()
  11. # check if we are building from this project, or are imported by another
  12. if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
  13. set(DPF_BUILD_FROM_HERE TRUE)
  14. else()
  15. set(DPF_BUILD_FROM_HERE FALSE)
  16. endif()
  17. option(DPF_LIBRARIES "Build the libraries" "${DPF_BUILD_FROM_HERE}")
  18. option(DPF_EXAMPLES "Build the examples" "${DPF_BUILD_FROM_HERE}")
  19. set(DPF_ROOT_DIR "${PROJECT_SOURCE_DIR}" CACHE INTERNAL
  20. "Root directory of the DISTRHO Plugin Framework.")
  21. list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
  22. include(DPF-plugin)
  23. if(DPF_LIBRARIES)
  24. if(NOT (MSVC OR APPLE)) # TODO skip this one for now
  25. dpf__add_dgl_cairo()
  26. endif()
  27. dpf__add_dgl_opengl()
  28. endif()
  29. if(DPF_EXAMPLES)
  30. if(NOT (MSVC OR APPLE)) # TODO skip this one for now
  31. add_subdirectory("examples/CairoUI")
  32. endif()
  33. #add_subdirectory("examples/ExternalUI")
  34. add_subdirectory("examples/FileHandling")
  35. add_subdirectory("examples/Info")
  36. add_subdirectory("examples/Latency")
  37. add_subdirectory("examples/Meters")
  38. add_subdirectory("examples/MidiThrough")
  39. add_subdirectory("examples/Parameters")
  40. add_subdirectory("examples/States")
  41. endif()