yolobs-studio/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt

80 lines
1.8 KiB
CMake
Raw Normal View History

2019-07-27 12:47:10 +00:00
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})
2020-10-01 20:15:25 +00:00
find_package(Qt5X11Extras REQUIRED)
2019-07-27 12:47:10 +00:00
endif()
set(decklink-ouput-ui_HEADERS
${decklink-ouput-ui_HEADERS}
2020-10-01 20:15:25 +00:00
../../qt-wrappers.hpp
2019-07-27 12:47:10 +00:00
../../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}
2020-10-01 20:15:25 +00:00
../../qt-wrappers.cpp
2019-07-27 12:47:10 +00:00
../../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
)
2020-05-27 20:57:19 +00:00
if(WIN32)
set(MODULE_DESCRIPTION "OBS DeckLink Output UI")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in decklink-ouput-ui.rc)
list(APPEND decklink-ouput-ui_SOURCES
decklink-ouput-ui.rc)
endif()
2019-07-27 12:47:10 +00:00
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)
2020-10-01 20:15:25 +00:00
if(UNIX AND NOT APPLE)
target_link_libraries(decklink-ouput-ui
Qt5::X11Extras)
endif()
set_target_properties(decklink-ouput-ui PROPERTIES FOLDER "frontend")
2019-07-27 12:47:10 +00:00
install_obs_plugin_with_data(decklink-ouput-ui data)