From 7d6dc2cdf8243dcdfe4cf44be89836f86944a9b9 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 20 Nov 2023 13:41:50 +0100 Subject: [PATCH] Also add sentry to CMakeLists CURA-11364 --- CMakeLists.txt | 2 ++ src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27fcdf5bd8..cb1b3cc708 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,6 +201,7 @@ find_package(fmt REQUIRED) find_package(range-v3 REQUIRED) find_package(scripta REQUIRED) find_package(neargye-semver REQUIRED) +find_package(sentry REQUIRED) if (ENABLE_TESTING) find_package(GTest REQUIRED) @@ -221,6 +222,7 @@ target_link_libraries(_CuraEngine asio-grpc::asio-grpc grpc::grpc protobuf::libprotobuf + sentry::sentry $<$:GTest::gtest>) if (NOT WIN32) diff --git a/src/main.cpp b/src/main.cpp index e568d0e248..9a7f06c3ae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,7 +48,7 @@ int main(int argc, char** argv) sentry_options_set_release(options, "curaengine@1.0.0"); sentry_options_set_debug(options, 1); sentry_init(options); - + cura::Application::getInstance().run(argc, argv); sentry_close();