CMakeLists.txt 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. project(libobs-d3d11)
  2. include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
  3. find_package(DirectX REQUIRED)
  4. if(NOT DirectX_D3D11_FOUND)
  5. message(FATAL_ERROR "No D3D11 SDK Found!")
  6. endif()
  7. include_directories(
  8. ${DirectX_D3D11_INCLUDE_DIRS})
  9. add_definitions(-DLIBOBS_EXPORTS)
  10. set(libobs-d3d11_SOURCES
  11. d3d11-indexbuffer.cpp
  12. d3d11-samplerstate.cpp
  13. d3d11-shader.cpp
  14. d3d11-shaderprocessor.cpp
  15. d3d11-stagesurf.cpp
  16. d3d11-subsystem.cpp
  17. d3d11-texture2d.cpp
  18. d3d11-vertexbuffer.cpp
  19. d3d11-zstencilbuffer.cpp)
  20. set(libobs-d3d11_HEADERS
  21. d3d11-exports.h
  22. d3d11-shaderprocessor.hpp
  23. d3d11-subsystem.hpp)
  24. add_library(libobs-d3d11 MODULE
  25. ${libobs-d3d11_SOURCES}
  26. ${libobs-d3d11_HEADERS})
  27. set_target_properties(libobs-d3d11
  28. PROPERTIES
  29. OUTPUT_NAME libobs-d3d11
  30. PREFIX "")
  31. target_link_libraries(libobs-d3d11
  32. libobs
  33. ${DirectX_LIBRARY}
  34. ${DirectX_DXGI_LIBRARY}
  35. ${DirectX_D3DCOMPILER_LIBRARY}
  36. ${DirectX_D3D11_LIBRARIES})
  37. install_obs_core(libobs-d3d11)