Integrate cmake with vscode
This commit is contained in:
5
.vscode/launch.json
vendored
5
.vscode/launch.json
vendored
@@ -5,9 +5,10 @@
|
||||
"name": "Debug Bits Runner Builder",
|
||||
"type": "lldb-dap",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/brb",
|
||||
"program": "${command:cmake.launchTargetPath}",
|
||||
"args": ["-v", "${workspaceFolder}/test.brc"],
|
||||
"internalConsoleOptions": "openOnSessionStart"
|
||||
"cwd": "${workspaceFolder}",
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
}
|
||||
]
|
||||
}
|
||||
15
.vscode/tasks.json
vendored
15
.vscode/tasks.json
vendored
@@ -2,22 +2,13 @@
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build Bits Runner Builder",
|
||||
"type": "shell",
|
||||
"command": "cmake --build build",
|
||||
"label": "Build Bits Runner Builder (Debug)",
|
||||
"type": "cmake",
|
||||
"command": "build",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Clean built product",
|
||||
"type": "shell",
|
||||
"command": "cmake --build build --target clean",
|
||||
"group": {
|
||||
"kind": "none",
|
||||
"isDefault": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
cmake_minimum_required(VERSION 4.0)
|
||||
project(bits-runner-builder LANGUAGES CXX)
|
||||
project(
|
||||
bits-runner-builder
|
||||
VERSION 0.1.0
|
||||
LANGUAGES CXX C)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_COLOR_DIAGNOSTICS OFF)
|
||||
|
||||
find_package(LLVM REQUIRED CONFIG)
|
||||
include_directories(${LLVM_INCLUDE_DIRS})
|
||||
|
||||
Reference in New Issue
Block a user