Skip to content

Commit

Permalink
UI: Add front-end API library
Browse files Browse the repository at this point in the history
Allows manipulating and modifying the front-end via plugins.
  • Loading branch information
jp9000 committed Sep 7, 2016
1 parent bfc2131 commit 8836592
Show file tree
Hide file tree
Showing 15 changed files with 1,049 additions and 6 deletions.
11 changes: 9 additions & 2 deletions UI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
project(obs)

option(ENABLE_UI "Enables the OBS user interfaces" ON)
if(DISABLE_UI)
message(STATUS "UI disabled")
Expand All @@ -10,6 +8,12 @@ else()
set(FIND_MODE QUIET)
endif()

add_subdirectory(obs-frontend-api)

# ----------------------------------------------------------------------------

project(obs)

if(DEFINED QTDIR${_lib_suffix})
list(APPEND CMAKE_PREFIX_PATH "${QTDIR${_lib_suffix}}")
elseif(DEFINED QTDIR)
Expand Down Expand Up @@ -40,6 +44,7 @@ if(NOT Qt5Widgets_FOUND)
endif()
endif()

include_directories(SYSTEM "obs-frontend-api")
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")

find_package(Libcurl REQUIRED)
Expand Down Expand Up @@ -97,6 +102,7 @@ endif()
set(obs_SOURCES
${obs_PLATFORM_SOURCES}
obs-app.cpp
api-interface.cpp
window-basic-main.cpp
window-basic-filters.cpp
window-basic-settings.cpp
Expand Down Expand Up @@ -219,6 +225,7 @@ target_link_libraries(obs
libobs
libff
Qt5::Widgets
obs-frontend-api
${LIBCURL_LIBRARIES}
${obs_PLATFORM_LIBRARIES})

Expand Down

0 comments on commit 8836592

Please sign in to comment.