yolobs-studio/plugins/obs-text/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
567 B
CMake
Raw Normal View History

2016-10-10 19:01:40 +00:00
if (NOT WIN32)
return()
endif()
project(obs-text)
if(WIN32)
2020-05-27 20:57:19 +00:00
set(MODULE_DESCRIPTION "OBS GDI+ text module")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in obs-text.rc)
2016-10-10 19:01:40 +00:00
set(obs-text_PLATFORM_SOURCES
2020-05-27 20:57:19 +00:00
gdiplus/obs-text.cpp
obs-text.rc)
2016-10-10 19:01:40 +00:00
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})
2020-10-01 20:15:25 +00:00
set_target_properties(obs-text PROPERTIES FOLDER "plugins")
2016-10-10 19:01:40 +00:00
install_obs_plugin_with_data(obs-text data)