CMakeLists.txt 652 B

12345678910111213141516171819202122232425262728293031
  1. cmake_minimum_required(VERSION 3.28...3.30)
  2. find_package(X11 REQUIRED)
  3. find_package(
  4. XCB
  5. REQUIRED XCB XFIXES RANDR SHM XINERAMA COMPOSITE
  6. )
  7. add_library(linux-capture MODULE)
  8. add_library(OBS::capture ALIAS linux-capture)
  9. target_sources(
  10. linux-capture
  11. PRIVATE
  12. linux-capture.c
  13. xcomposite-input.c
  14. xcomposite-input.h
  15. xcursor-xcb.c
  16. xcursor-xcb.h
  17. xhelpers.c
  18. xhelpers.h
  19. xshm-input.c
  20. )
  21. target_link_libraries(
  22. linux-capture
  23. PRIVATE OBS::libobs OBS::glad X11::X11 XCB::XCB XCB::XFIXES XCB::RANDR XCB::SHM XCB::XINERAMA XCB::COMPOSITE
  24. )
  25. set_target_properties_obs(linux-capture PROPERTIES FOLDER plugins PREFIX "")