Fun with Linux

pull/130/head
Peter Repukat 2 years ago
parent 43a54afc94
commit d6fb4d84bc

3
.gitignore vendored

@ -16,6 +16,9 @@
# Mono auto generated files
mono_crash.*
[Bb]uild/
# Build results
[Dd]ebug/
[Dd]ebugPublic/

@ -0,0 +1,28 @@
{
// 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": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/GlosSITarget",
"preLaunchTask": "Build",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

@ -0,0 +1,3 @@
{
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
}

@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cmake",
"command": "build",
"label": "Build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}

@ -11,7 +11,25 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_executable( GlosSITarget
add_executable(${PROJECT_NAME}
main.cpp
SteamTarget.cpp
)
TargetWindow.cpp
)
target_include_directories(${PROJECT_NAME} PRIVATE ../deps/SFML/include)
if (CMAKE_BUILD_TYPE EQUAL "DEBUG")
target_link_directories(${PROJECT_NAME} PRIVATE ../deps/SFML/out/Debug/lib)
target_link_libraries( ${PROJECT_NAME} PRIVATE
sfml-system-d
sfml-window-d
sfml-graphics-d
)
else()
target_link_directories(${PROJECT_NAME} PRIVATE ../deps/SFML/out/Release/lib)
target_link_libraries( ${PROJECT_NAME} PRIVATE
sfml-system
sfml-window
sfml-graphics
)
endif()

@ -0,0 +1,10 @@
#!/usr/bin/env bash
cd deps/SFML
cmake -S . -B out/Debug -DCMAKE_BUILD_TYPE=Debug
cmake --build out/Debug --config Debug
cmake -S . -B out/Release -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build out/Release --config RelWithDebInfo

@ -0,0 +1,12 @@
{
"folders": [
{
"uri": "vscode-remote://wsl+arch/home/alia5/glossi/GloSC/GlosSITarget"
},
{
"name": "root",
"uri": "vscode-remote://wsl+arch/home/alia5/glossi/GloSC"
}
],
"settings": {}
}
Loading…
Cancel
Save