Add crashpad_handler to macOS .app

This commit is contained in:
Luke Street 2021-04-04 18:24:02 -04:00
parent 234981aa7f
commit ee4a12f1ea
1 changed files with 7 additions and 0 deletions

View File

@ -151,6 +151,13 @@ elseif (APPLE)
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:visigen> $<TARGET_FILE_DIR:hecl-gui> COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:visigen> $<TARGET_FILE_DIR:hecl-gui>
DEPENDS urde hecl visigen DEPENDS urde hecl visigen
) )
if (NOT "${SENTRY_DSN}" STREQUAL "")
add_custom_command(
TARGET hecl-gui POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:crashpad_handler> $<TARGET_FILE_DIR:hecl-gui>
DEPENDS crashpad_handler
)
endif()
endif () endif ()
add_subdirectory(platforms/freedesktop) add_subdirectory(platforms/freedesktop)