Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CMake for building. Crude, but effective. #347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build
Makefile.local
local.cmake
*.swp
*tags
*~
Expand Down Expand Up @@ -41,3 +42,16 @@ profile
*.sdf
*.opensdf
*.suo

# CMake
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// 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": [

// GDB Debugging:
{
"program": "${command:cmake.launchTargetPath}",
"name": "Launch (gdb)",
"request": "launch",
"args": [
"+set", "fs_basepath", "/home/deck/Games/gog/quake-iii-arena",
"+set", "fs_homepath", "/home/deck/Games/gog/quake-iii-arena",
"+set", "fs_game", "dkres",
"+set", "com_renderer", "opengl2",
"+set", "fs_basegame", "baseq3",
"+set", "developer", "1",
"+set", "fs_copyfiles", "1",
"+set", "fs_pure", "0",
"+set", "sv_pure", "0",
"+set", "r_mode", "4",
"+set", "r_fullscreen", "0",
"+set", "vm_cgame", "0",
"+set", "vm_game", "0"
],
"environment": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "openOnSessionStart",
"type": "cppdbg",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Loading
Loading