CMakeLists.txt 567 B

12345678910111213141516171819202122232425
  1. if (NOT WIN32)
  2. return()
  3. endif()
  4. project(obs-text)
  5. if(WIN32)
  6. set(MODULE_DESCRIPTION "OBS GDI+ text module")
  7. configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in obs-text.rc)
  8. set(obs-text_PLATFORM_SOURCES
  9. gdiplus/obs-text.cpp
  10. obs-text.rc)
  11. set(obs-text_PLATFORM_DEPS
  12. gdiplus)
  13. endif()
  14. add_library(obs-text MODULE
  15. ${obs-text_PLATFORM_SOURCES}
  16. ${obs-text_PLATFORM_HEADERS})
  17. target_link_libraries(obs-text
  18. libobs
  19. ${obs-text_PLATFORM_DEPS})
  20. set_target_properties(obs-text PROPERTIES FOLDER "plugins")
  21. install_obs_plugin_with_data(obs-text data)