yolobs-studio/libobs-winrt/CMakeLists.txt

42 lines
874 B
CMake
Raw Normal View History

2020-03-25 08:07:22 +00:00
project(libobs-winrt)
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
add_definitions(-DLIBOBS_EXPORTS)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(libobs-winrt_SOURCES
2020-10-01 20:15:25 +00:00
winrt-capture.cpp
winrt-dispatch.cpp)
2020-03-25 08:07:22 +00:00
set(libobs-winrt_HEADERS
2020-10-01 20:15:25 +00:00
winrt-capture.h
winrt-dispatch.h)
2020-03-25 08:07:22 +00:00
add_library(libobs-winrt MODULE
${libobs-winrt_SOURCES}
${libobs-winrt_HEADERS})
set_target_properties(libobs-winrt
PROPERTIES
2020-10-01 20:15:25 +00:00
FOLDER "core"
2020-03-25 08:07:22 +00:00
OUTPUT_NAME libobs-winrt
PREFIX "")
target_precompile_headers(libobs-winrt
PRIVATE
[["../libobs/util/windows/ComPtr.hpp"]]
<obs-module.h>
<d3d11.h>
2020-10-01 20:15:25 +00:00
<DispatcherQueue.h>
2020-03-25 08:07:22 +00:00
<dwmapi.h>
<Windows.Graphics.Capture.Interop.h>
<winrt/Windows.Foundation.Metadata.h>
2020-10-01 20:15:25 +00:00
<winrt/Windows.Graphics.Capture.h>
<winrt/Windows.System.h>)
2020-03-25 08:07:22 +00:00
target_link_libraries(libobs-winrt
libobs
Dwmapi
windowsapp)
install_obs_core(libobs-winrt)