obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.86k stars 707 forks source link

cmake,lib,base: Export obs-websocket-api as a target #1196

Closed tytan652 closed 6 months ago

tytan652 commented 8 months ago

Description

Relies on:

This enables the installation of the header in the include directory by exporting it as an interface target

Motivation and Context

No more copy-pasting the header to use it

How Has This Been Tested?

Tested OS(s):

Windows and macOS headers needs to be checked

Types of changes

Checklist:

tt2468 commented 8 months ago

Looks good to me, just curious if Pat has any comments on doing this

tytan652 commented 8 months ago

This PR, the updated CMake of the obs-browser-api PR and the obs-studio PR that they rely on were based on a discussion I had with Pat about shipping those headets.

So for the 3 PRs, I'm waiting for Pat's feedback.