-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,005 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.22...3.25) | ||
|
||
legacy_check() | ||
|
||
find_package(Qt6 REQUIRED Widgets) | ||
|
||
add_library(obs-browser-api INTERFACE) | ||
add_library(OBS::browser-api ALIAS obs-browser-api) | ||
|
||
target_sources(obs-browser-api PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/obs-browser-api.hpp> | ||
$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}/obs-browser-api.hpp>) | ||
|
||
target_link_libraries(obs-browser-api INTERFACE OBS::libobs Qt::Widgets) | ||
|
||
target_include_directories(obs-browser-api INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>" | ||
"$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}>") | ||
|
||
set_target_properties( | ||
obs-browser-api | ||
PROPERTIES FOLDER browser | ||
PREFIX "" | ||
PUBLIC_HEADER obs-browser-api.hpp) | ||
|
||
target_export(obs-browser-api) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if(POLICY CMP0090) | ||
cmake_policy(SET CMP0090 NEW) | ||
endif() | ||
|
||
project(obs-browser-api) | ||
|
||
find_package(Qt6 REQUIRED Widgets) | ||
|
||
add_library(obs-browser-api INTERFACE) | ||
add_library(OBS::browser-api ALIAS obs-browser-api) | ||
|
||
target_sources(obs-browser-api PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/obs-browser-api.hpp> | ||
$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}/obs-browser-api.hpp>) | ||
|
||
target_link_libraries(obs-browser-api INTERFACE OBS::libobs Qt::Widgets) | ||
|
||
target_include_directories(obs-browser-api INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | ||
$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}>) | ||
|
||
set_target_properties(obs-browser-api PROPERTIES FOLDER "browser" PUBLIC_HEADER obs-browser-api.hpp) | ||
|
||
export_target(obs-browser-api) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include(CMakeFindDependencyMacro) | ||
|
||
find_dependency(libobs REQUIRED) | ||
find_package(Qt6 REQUIRED Widgets) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
check_required_components("@PROJECT_NAME@") |
Oops, something went wrong.