mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
cmake_minimum_required(VERSION 3.22...3.25)
|
|
|
|
find_package(Qt6 REQUIRED Core Widgets)
|
|
|
|
if(NOT TARGET OBS::qt-wrappers)
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/shared/qt/wrappers" "${CMAKE_BINARY_DIR}/shared/qt/wrappers")
|
|
endif()
|
|
|
|
if(NOT TARGET OBS::qt-plain-text-edit)
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/shared/qt/plain-text-edit" "${CMAKE_BINARY_DIR}/shared/qt/plain-text-edit")
|
|
endif()
|
|
|
|
if(NOT TARGET OBS::qt-vertical-scroll-area)
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/shared/qt/vertical-scroll-area"
|
|
"${CMAKE_BINARY_DIR}/shared/qt/vertical-scroll-area")
|
|
endif()
|
|
|
|
if(NOT TARGET OBS::qt-slider-ignorewheel)
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/shared/qt/slider-ignorewheel"
|
|
"${CMAKE_BINARY_DIR}/shared/qt/slider-ignorewheel")
|
|
endif()
|
|
|
|
add_library(properties-view INTERFACE)
|
|
add_library(OBS::properties-view ALIAS properties-view)
|
|
|
|
target_sources(
|
|
properties-view
|
|
INTERFACE # cmake-format: sortable
|
|
double-slider.cpp
|
|
double-slider.hpp
|
|
properties-view.cpp
|
|
properties-view.hpp
|
|
properties-view.moc.hpp
|
|
spinbox-ignorewheel.cpp
|
|
spinbox-ignorewheel.hpp)
|
|
target_include_directories(properties-view INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
if(OS_LINUX AND Qt6_VERSION VERSION_LESS 6.3)
|
|
target_compile_options(properties-view INTERFACE -Wno-error=enum-conversion)
|
|
endif()
|
|
|
|
target_link_libraries(
|
|
properties-view
|
|
INTERFACE OBS::frontend-api
|
|
OBS::libobs
|
|
OBS::qt-wrappers
|
|
OBS::qt-plain-text-edit
|
|
OBS::qt-vertical-scroll-area
|
|
OBS::qt-slider-ignorewheel
|
|
Qt::Core
|
|
Qt::Widgets)
|