cmake_minimum_required(VERSION 3.22...3.25) legacy_check() add_library(obs-frontend-api SHARED) add_library(OBS::frontend-api ALIAS obs-frontend-api) target_sources(obs-frontend-api PRIVATE obs-frontend-api.h obs-frontend-api.cpp obs-frontend-internal.hpp) target_link_libraries(obs-frontend-api PRIVATE OBS::libobs) target_include_directories(obs-frontend-api PUBLIC "$") if(OS_WINDOWS) configure_file(cmake/windows/obs-module.rc.in obs-frontend-api.rc) target_sources(obs-frontend-api PRIVATE obs-frontend-api.rc) elseif(OS_MACOS) set_target_properties(obs-frontend-api PROPERTIES SOVERSION 1) endif() # cmake-format: off set_target_properties_obs(obs-frontend-api PROPERTIES FOLDER frontend PREFIX "" PUBLIC_HEADER obs-frontend-api.h) # cmake-format: on target_export(obs-frontend-api)