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