CMakeLists.txt 733 B

1234567891011121314151617181920212223242526272829303132333435
  1. project(linux-pulseaudio)
  2. if(DISABLE_PULSEAUDIO)
  3. message(STATUS "PulseAudio support disabled")
  4. return()
  5. endif()
  6. find_package(PulseAudio)
  7. if(NOT PULSEAUDIO_FOUND AND ENABLE_PULSEAUDIO)
  8. message(FATAL_ERROR "PulseAudio not found but set as enabled")
  9. elseif(NOT PULSEAUDIO_FOUND)
  10. message(STATUS "PulseAudio not found, disabling PulseAudio plugin")
  11. return()
  12. endif()
  13. include_directories(
  14. SYSTEM "${CMAKE_SOURCE_DIR}/libobs"
  15. ${PULSEAUDIO_INCLUDE_DIR}
  16. )
  17. set(linux-pulseaudio_SOURCES
  18. linux-pulseaudio.c
  19. pulse-wrapper.c
  20. pulse-input.c
  21. )
  22. add_library(linux-pulseaudio MODULE
  23. ${linux-pulseaudio_SOURCES}
  24. )
  25. target_link_libraries(linux-pulseaudio
  26. libobs
  27. ${PULSEAUDIO_LIBRARY}
  28. )
  29. install_obs_plugin_with_data(linux-pulseaudio data)