a1b46c0fa5
I do not want the D3D11 library to depend on a specific compiler version. This way, I do not have to distribute D3D Compiler libraries with the program (proprietary binary blobs). Any particular version works because the API for the D3DCompiler function appears to be the same; the only things that change are other features and additions mostly (at least as far as I can tell). Using any version available on the system should be more than sufficient rather than depending on some specific D3D compiler version. If the user doesn't have it, a download of the latest D3D distributables should be fine, though it should work with the ones that come with windows 7+ as well.
35 lines
682 B
CMake
35 lines
682 B
CMake
project(libobs-d3d11)
|
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
add_definitions(-DLIBOBS_EXPORTS)
|
|
|
|
set(libobs-d3d11_SOURCES
|
|
d3d11-indexbuffer.cpp
|
|
d3d11-samplerstate.cpp
|
|
d3d11-shader.cpp
|
|
d3d11-shaderprocessor.cpp
|
|
d3d11-stagesurf.cpp
|
|
d3d11-subsystem.cpp
|
|
d3d11-texture2d.cpp
|
|
d3d11-vertexbuffer.cpp
|
|
d3d11-zstencilbuffer.cpp)
|
|
|
|
set(libobs-d3d11_HEADERS
|
|
d3d11-shaderprocessor.hpp
|
|
d3d11-subsystem.hpp)
|
|
|
|
add_library(libobs-d3d11 MODULE
|
|
${libobs-d3d11_SOURCES}
|
|
${libobs-d3d11_HEADERS})
|
|
set_target_properties(libobs-d3d11
|
|
PROPERTIES
|
|
OUTPUT_NAME libobs-d3d11
|
|
PREFIX "")
|
|
target_link_libraries(libobs-d3d11
|
|
libobs
|
|
d3d11
|
|
dxgi)
|
|
|
|
install_obs_core(libobs-d3d11)
|