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();