yolobs-studio/plugins/decklink/win/CMakeLists.txt

55 lines
1 KiB
CMake
Raw Normal View History

2016-02-23 23:16:51 +00:00
project(win-decklink)
2017-06-29 19:01:10 +00:00
if(DISABLE_DECKLINK)
message(STATUS "decklink plugin disabled")
return()
endif()
2016-02-23 23:16:51 +00:00
include(IDLFileHelper)
set(win-decklink-sdk_IDLS
decklink-sdk/DeckLinkAPI.idl
)
set(win-decklink-sdk_HEADERS
decklink-sdk/DeckLinkAPIVersion.h
)
set(win-decklink_HEADERS
../platform.hpp
../decklink.hpp
../decklink-device-instance.hpp
../decklink-device-discovery.hpp
../decklink-device.hpp
../decklink-device-mode.hpp
2017-06-29 19:01:10 +00:00
../audio-repack.h
../audio-repack.hpp
2016-02-23 23:16:51 +00:00
)
set(win-decklink_SOURCES
../plugin-main.cpp
../decklink.cpp
../decklink-device-instance.cpp
../decklink-device-discovery.cpp
../decklink-device.cpp
../decklink-device-mode.cpp
2017-06-29 19:01:10 +00:00
../audio-repack.c
2016-02-23 23:16:51 +00:00
platform.cpp)
add_idl_files(win-decklink-sdk_GENERATED_FILES
${win-decklink-sdk_IDLS})
include_directories(
${CMAKE_CURRENT_BINARY_DIR})
add_library(win-decklink MODULE
${win-decklink_SOURCES}
${win-decklink_HEADERS}
${win-decklink-sdk_HEADERS}
${win-decklink-sdk_GENERATED_FILES})
target_link_libraries(win-decklink
libobs)
install_obs_plugin_with_data(win-decklink ../data)