1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Fix sentry include and linking

This commit is contained in:
Elias Steurer 2022-04-24 09:10:17 +02:00
parent d722e6232f
commit a068e6d050
2 changed files with 4 additions and 7 deletions

View File

@ -216,7 +216,7 @@ qt_add_qml_module(
${QML})
if(WIN32)
target_link_libraries(${PROJECT_NAME} PUBLIC sentry::sentry)
target_link_libraries(ScreenPlayLib PUBLIC sentry::sentry)
# Icon
target_sources(${PROJECT_NAME} PRIVATE ScreenPlay.rc)
@ -280,10 +280,4 @@ if(APPLE)
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/../Common/ffmpeg/ffprobe ${CMAKE_BINARY_DIR}/bin/)
endif()
add_custom_command(
TARGET ${PROJECT_NAME}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${VCPKG_INSTALLED_PATH}/tools/sentry-native/crashpad_handler
${CMAKE_BINARY_DIR}/bin/ScreenPlay.app/Contents/MacOS/)
endif()

View File

@ -61,7 +61,10 @@
#include "ScreenPlay/wizards.h"
#include <memory>
#if defined(Q_OS_WIN)
#include <sentry.h>
#endif
namespace ScreenPlay {