CMakeLists.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. add_library(libdshowcapture INTERFACE)
  2. add_library(OBS::libdshowcapture ALIAS libdshowcapture)
  3. target_sources(
  4. libdshowcapture
  5. INTERFACE src/dshowcapture.hpp
  6. src/source/capture-filter.cpp
  7. src/source/capture-filter.hpp
  8. src/source/device-vendor.cpp
  9. src/source/device.cpp
  10. src/source/device.hpp
  11. src/source/dshow-base.cpp
  12. src/source/dshow-base.hpp
  13. src/source/dshow-demux.cpp
  14. src/source/dshow-demux.hpp
  15. src/source/dshow-device-defs.hpp
  16. src/source/dshow-encoded-device.cpp
  17. src/source/dshow-enum.cpp
  18. src/source/dshow-enum.hpp
  19. src/source/dshow-formats.cpp
  20. src/source/dshow-formats.hpp
  21. src/source/dshow-media-type.cpp
  22. src/source/dshow-media-type.hpp
  23. src/source/dshowcapture.cpp
  24. src/source/dshowencode.cpp
  25. src/source/encoder.cpp
  26. src/source/encoder.hpp
  27. src/source/external/IVideoCaptureFilter.h
  28. src/source/log.cpp
  29. src/source/log.hpp
  30. src/source/output-filter.cpp
  31. src/source/output-filter.hpp
  32. src/external/capture-device-support/Library/EGAVResult.cpp
  33. src/external/capture-device-support/Library/ElgatoUVCDevice.cpp
  34. src/external/capture-device-support/Library/win/EGAVHIDImplementation.cpp
  35. src/external/capture-device-support/SampleCode/DriverInterface.cpp)
  36. target_include_directories(
  37. libdshowcapture INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src"
  38. "${CMAKE_CURRENT_SOURCE_DIR}/src/external/capture-device-support/Library")
  39. target_compile_definitions(libdshowcapture INTERFACE _UP_WINDOWS=1)
  40. target_compile_options(libdshowcapture INTERFACE /wd4018)