Browse Source

.vscode

master
gjj 9 months ago
parent
commit
5cb71081dc
  1. 1
      .gitignore
  2. 13
      .vscode/c_cpp_properties.json
  3. 30
      .vscode/launch.json
  4. 9
      .vscode/settings.json
  5. 28
      .vscode/tasks.json
  6. 2
      CMakeLists.txt

1
.gitignore

@ -1,2 +1 @@
build/
.vscode/

13
.vscode/c_cpp_properties.json

@ -0,0 +1,13 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}

30
.vscode/launch.json

@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch", //
"type": "lldb", // ,CodeLLDB
"request": "launch", // launchattach
"program": "${command:cmake.launchTargetPath}", // cmake-tools
"args": [], //
"stopAtEntry": false, // truemain
"cwd": "${workspaceFolder}", // ${workspaceFolder}${fileDirname}
"environment": [], //
"externalConsole": false, // 使cmdIDEfalse使
"internalConsoleOptions": "neverOpen", // neverOpengdb/lldb
"MIMode": "lldb", // gdblldb使llvm使lldb
"miDebuggerPath": "/usr/bin/lldb", // lldb which lldb
"setupCommands": [
{ // STL
"description": "Enable pretty-printing for lldb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "taskBuild" // tasks.jsonlabelCMakeCMake: build
}
]
}

9
.vscode/settings.json

@ -0,0 +1,9 @@
{
"files.associations": {
"unordered_map": "cpp",
"vector": "cpp",
"array": "cpp",
"iostream": "cpp"
},
"C_Cpp.default.compilerPath": "/usr/bin/clang++"
}

28
.vscode/tasks.json

@ -0,0 +1,28 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "taskBuild", // launch.jsonpreLaunchTask
"type": "shell", // processshell
"command": "cmake --build build", // 使Cclang
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$clang"],
"detail": "Generated task by CMake Tools."
},
{
"label": "run",
"type": "shell",
"dependsOn": "build",
"command": "${command:cmake.launchTargetPath}", // cmake-tools
"group": {
"kind": "test",
"isDefault": true
}
}
]
}

2
CMakeLists.txt

@ -3,6 +3,8 @@ project(algoim CXX C)
set(CMAKE_STANDARD 17)
set(CMAKE_EXPORT_COMPILECOMMANDS ON)
include_directories(algoim)
# find_package(LAPACK REQUIRED)

Loading…
Cancel
Save