legacy.cmake 895 B

123456789101112131415161718192021
  1. project(inject-helper)
  2. add_executable(inject-helper)
  3. target_sources(inject-helper PRIVATE inject-helper.c ../inject-library.c ../inject-library.h
  4. ../../../libobs/util/windows/obfuscate.c ../../../libobs/util/windows/obfuscate.h)
  5. target_include_directories(inject-helper PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_SOURCE_DIR}/libobs)
  6. target_compile_definitions(inject-helper PRIVATE OBS_LEGACY)
  7. if(MSVC)
  8. target_compile_options(inject-helper PRIVATE "$<IF:$<CONFIG:Debug>,/MTd,/MT>")
  9. endif()
  10. set_target_properties(inject-helper PROPERTIES FOLDER "plugins/win-capture"
  11. OUTPUT_NAME "inject-helper$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,64,32>")
  12. set(OBS_PLUGIN_DESTINATION "${OBS_DATA_DESTINATION}/obs-plugins/win-capture/")
  13. setup_plugin_target(inject-helper)
  14. add_dependencies(win-capture inject-helper)