From a0fe84b11fd367c2780d639dfcd311aeb14cf943 Mon Sep 17 00:00:00 2001 From: lsv Date: Wed, 18 Mar 2026 15:07:06 +0500 Subject: [PATCH] for debug linux --- .vscode/launch.json | 3 +++ CMakeLists.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 972c88e..e563a8e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,6 +20,9 @@ "ignoreFailures": true } ] + ,"env": { + "LD_LIBRARY_PATH": "${workspaceFolder}/build" + } } ] } \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 841ea23..e8d3a18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,8 @@ file(GLOB_RECURSE SOURCES ) ########################################################## - +set(RPATH ".") +list(APPEND CMAKE_BUILD_RPATH ${RPATH}) add_executable(${PROJECT_NAME} ) # После сборки — разделить символы и приложение add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD