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

80 lines
1.8 KiB
CMake
Raw Normal View History

2016-02-23 23:16:51 +00:00
project(mac-decklink)
2017-06-29 19:01:10 +00:00
if(DISABLE_DECKLINK)
message(STATUS "decklink plugin disabled")
return()
endif()
2019-07-27 12:47:10 +00:00
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
2016-02-23 23:16:51 +00:00
2019-07-27 12:47:10 +00:00
find_library(COREFOUNDATION CoreFoundation)
2016-02-23 23:16:51 +00:00
set(mac-decklink-sdk_HEADERS
decklink-sdk/DeckLinkAPI.h
decklink-sdk/DeckLinkAPIConfiguration.h
decklink-sdk/DeckLinkAPIDeckControl.h
decklink-sdk/DeckLinkAPIDiscovery.h
decklink-sdk/DeckLinkAPIModes.h
decklink-sdk/DeckLinkAPIStreaming.h
decklink-sdk/DeckLinkAPITypes.h
2019-07-27 12:47:10 +00:00
decklink-sdk/DeckLinkAPIVersion.h)
2016-02-23 23:16:51 +00:00
set(mac-decklink-sdk_SOURCES
decklink-sdk/DeckLinkAPIDispatch.cpp
)
set(mac-decklink_HEADERS
2019-07-27 12:47:10 +00:00
../decklink-devices.hpp
../const.h
../DecklinkOutput.hpp
2016-02-23 23:16:51 +00:00
../platform.hpp
2019-07-27 12:47:10 +00:00
../DecklinkInput.hpp
../DecklinkBase.h
2016-02-23 23:16:51 +00:00
../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
2019-07-27 12:47:10 +00:00
../util.hpp
2016-02-23 23:16:51 +00:00
)
set(mac-decklink_SOURCES
../plugin-main.cpp
2019-07-27 12:47:10 +00:00
../decklink-devices.cpp
../decklink-output.cpp
../decklink-source.cpp
../DecklinkOutput.cpp
../DecklinkInput.cpp
../DecklinkBase.cpp
2016-02-23 23:16:51 +00:00
../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
2019-07-27 12:47:10 +00:00
platform.cpp
../util.cpp
)
list(APPEND decklink_HEADERS ${decklink_UI_HEADERS})
include_directories(
${COREFOUNDATION}
"${CMAKE_SOURCE_DIR}/UI/obs-frontend-api")
list(APPEND mac-decklink_HEADERS ${decklink_UI_HEADERS})
2016-02-23 23:16:51 +00:00
add_library(mac-decklink MODULE
${mac-decklink_SOURCES}
${mac-decklink_HEADERS}
${mac-decklink-sdk_HEADERS}
2019-07-27 12:47:10 +00:00
${mac-decklink-sdk_SOURCES}
)
2016-02-23 23:16:51 +00:00
target_link_libraries(mac-decklink
libobs
${COREFOUNDATION})
2020-10-01 20:15:25 +00:00
set_target_properties(mac-decklink PROPERTIES FOLDER "plugins")
2016-02-23 23:16:51 +00:00
install_obs_plugin_with_data(mac-decklink ../data)