CMakeLists.txt 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. project(win-capture)
  2. if(MSVC)
  3. set(win-capture_PLATFORM_DEPS
  4. w32-pthreads)
  5. endif()
  6. set(win-capture_HEADERS
  7. nt-stuff.h
  8. obfuscate.h
  9. app-helpers.h
  10. hook-helpers.h
  11. inject-library.h
  12. cursor-capture.h
  13. graphics-hook-info.h
  14. graphics-hook-ver.h
  15. window-helpers.h
  16. dc-capture.h)
  17. set(win-capture_SOURCES
  18. dc-capture.c
  19. obfuscate.c
  20. app-helpers.c
  21. inject-library.c
  22. cursor-capture.c
  23. game-capture.c
  24. window-helpers.c
  25. monitor-capture.c
  26. window-capture.c
  27. load-graphics-offsets.c
  28. game-capture-file-init.c
  29. duplicator-monitor-capture.c
  30. plugin-main.c
  31. nt-stuff.c)
  32. add_library(win-capture MODULE
  33. ${win-capture_SOURCES}
  34. ${win-capture_HEADERS})
  35. target_link_libraries(win-capture
  36. ${win-capture_PLATFORM_DEPS}
  37. libobs
  38. Dwmapi
  39. ipc-util)
  40. set_target_properties(win-capture PROPERTIES FOLDER "plugins/win-capture")
  41. install_obs_plugin_with_data(win-capture data)
  42. add_subdirectory(graphics-hook)
  43. add_subdirectory(get-graphics-offsets)
  44. add_subdirectory(inject-helper)