0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00
obs-studio/plugins/obs-text/CMakeLists.txt
2020-05-13 06:52:37 -07:00

26 lines
567 B
CMake

if (NOT WIN32)
return()
endif()
project(obs-text)
if(WIN32)
set(MODULE_DESCRIPTION "OBS GDI+ text module")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in obs-text.rc)
set(obs-text_PLATFORM_SOURCES
gdiplus/obs-text.cpp
obs-text.rc)
set(obs-text_PLATFORM_DEPS
gdiplus)
endif()
add_library(obs-text MODULE
${obs-text_PLATFORM_SOURCES}
${obs-text_PLATFORM_HEADERS})
target_link_libraries(obs-text
libobs
${obs-text_PLATFORM_DEPS})
set_target_properties(obs-text PROPERTIES FOLDER "plugins")
install_obs_plugin_with_data(obs-text data)