CMakeLists.txt 804 B

123456789101112131415161718192021222324
  1. project(inject-helper)
  2. add_executable(inject-helper)
  3. target_sources(
  4. inject-helper PRIVATE inject-helper.c ../inject-library.c ../inject-library.h
  5. ../obfuscate.c ../obfuscate.h)
  6. target_include_directories(inject-helper PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
  7. if(MSVC)
  8. target_compile_options(inject-helper PRIVATE "$<IF:$<CONFIG:Debug>,/MTd,/MT>")
  9. add_target_resource(inject-helper "$<TARGET_PDB_FILE:inject-helper>"
  10. "obs-plugins/win-capture/")
  11. endif()
  12. set_target_properties(
  13. inject-helper
  14. PROPERTIES FOLDER "plugins/win-capture"
  15. OUTPUT_NAME
  16. "inject-helper$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,64,32>")
  17. add_target_resource(inject-helper "$<TARGET_FILE:inject-helper>"
  18. "obs-plugins/win-capture/")