61 lines
1.3 KiB
CMake
61 lines
1.3 KiB
CMake
project(decklink-output-ui)
|
|
|
|
if(APPLE)
|
|
find_library(COCOA Cocoa)
|
|
include_directories(${COCOA})
|
|
endif()
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
find_package(X11 REQUIRED)
|
|
link_libraries(${X11_LIBRARIES})
|
|
include_directories(${X11_INCLUDE_DIR})
|
|
endif()
|
|
|
|
set(decklink-ouput-ui_HEADERS
|
|
${decklink-ouput-ui_HEADERS}
|
|
../../properties-view.hpp
|
|
../../properties-view.moc.hpp
|
|
../../vertical-scroll-area.hpp
|
|
../../double-slider.hpp
|
|
../../slider-ignorewheel.hpp
|
|
../../combobox-ignorewheel.hpp
|
|
../../spinbox-ignorewheel.hpp
|
|
./DecklinkOutputUI.h
|
|
decklink-ui-main.h
|
|
)
|
|
set(decklink-ouput-ui_SOURCES
|
|
${decklink-ouput-ui_SOURCES}
|
|
../../properties-view.cpp
|
|
../../vertical-scroll-area.cpp
|
|
../../double-slider.cpp
|
|
../../slider-ignorewheel.cpp
|
|
../../combobox-ignorewheel.cpp
|
|
../../spinbox-ignorewheel.cpp
|
|
./DecklinkOutputUI.cpp
|
|
decklink-ui-main.cpp
|
|
)
|
|
set(decklink-ouput-ui_UI
|
|
${decklink-ouput-ui_UI}
|
|
forms/output.ui
|
|
)
|
|
|
|
if(APPLE)
|
|
set(decklink-ouput-ui_PLATFORM_LIBS
|
|
${COCOA})
|
|
endif()
|
|
|
|
qt5_wrap_ui(decklink-ouput-ui_UI_HEADERS
|
|
${decklink-ouput-ui_UI})
|
|
|
|
add_library(decklink-ouput-ui MODULE
|
|
${decklink-ouput-ui_HEADERS}
|
|
${decklink-ouput-ui_SOURCES}
|
|
${decklink-ouput-ui_UI_HEADERS}
|
|
)
|
|
target_link_libraries(decklink-ouput-ui
|
|
${frontend-tools_PLATFORM_LIBS}
|
|
obs-frontend-api
|
|
Qt5::Widgets
|
|
libobs)
|
|
|
|
install_obs_plugin_with_data(decklink-ouput-ui data)
|