yolobs-studio/UI/obs-frontend-api/CMakeLists.txt

42 lines
993 B
CMake
Raw Permalink Normal View History

2016-10-10 19:01:40 +00:00
project(obs-frontend-api)
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
add_definitions(-DLIBOBS_EXPORTS)
set(obs-frontend-api_SOURCES
obs-frontend-api.cpp)
2020-05-27 20:57:19 +00:00
if(WIN32)
set(MODULE_DESCRIPTION "OBS Frontend API")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in ./obs-frontend-api.rc)
list(APPEND obs-frontend-api_SOURCES
obs-frontend-api.rc)
endif()
2020-10-01 20:15:25 +00:00
set(obs-frontend-api_PUBLIC_HEADERS
obs-frontend-api.h)
2016-10-10 19:01:40 +00:00
set(obs-frontend-api_HEADERS
obs-frontend-internal.hpp
2020-10-01 20:15:25 +00:00
${obs-frontend-api_PUBLIC_HEADERS})
2016-10-10 19:01:40 +00:00
add_library(obs-frontend-api SHARED
${obs-frontend-api_SOURCES}
${obs-frontend-api_HEADERS})
target_link_libraries(obs-frontend-api
libobs)
2020-10-01 20:15:25 +00:00
set_target_properties(obs-frontend-api PROPERTIES FOLDER "frontend")
2016-10-10 19:01:40 +00:00
2017-04-19 19:54:15 +00:00
if(UNIX AND NOT APPLE)
set_target_properties(obs-frontend-api
PROPERTIES
OUTPUT_NAME obs-frontend-api
VERSION 0.0
SOVERSION 0
)
endif()
2016-10-10 19:01:40 +00:00
install_obs_core(obs-frontend-api)
2020-10-01 20:15:25 +00:00
install_obs_headers(${obs-frontend-api_PUBLIC_HEADERS})