diff --git a/.gitignore b/.gitignore index 9491a2f..c2a8f3a 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,9 @@ # Mono auto generated files mono_crash.* +[Bb]uild/ + + # Build results [Dd]ebug/ [Dd]ebugPublic/ diff --git a/GlosSITarget/.vscode/launch.json b/GlosSITarget/.vscode/launch.json new file mode 100644 index 0000000..67e0af6 --- /dev/null +++ b/GlosSITarget/.vscode/launch.json @@ -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 + } + ] + } + ] +} \ No newline at end of file diff --git a/GlosSITarget/.vscode/settings.json b/GlosSITarget/.vscode/settings.json new file mode 100644 index 0000000..b4d8c35 --- /dev/null +++ b/GlosSITarget/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools" +} \ No newline at end of file diff --git a/GlosSITarget/.vscode/tasks.json b/GlosSITarget/.vscode/tasks.json new file mode 100644 index 0000000..4e6bbb9 --- /dev/null +++ b/GlosSITarget/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cmake", + "command": "build", + "label": "Build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + } + ] +} \ No newline at end of file diff --git a/GlosSITarget/CMakeLists.txt b/GlosSITarget/CMakeLists.txt index 1726f7d..0fb4fdd 100644 --- a/GlosSITarget/CMakeLists.txt +++ b/GlosSITarget/CMakeLists.txt @@ -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 -) \ No newline at end of file + 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() \ No newline at end of file diff --git a/buildSFML.sh b/buildSFML.sh new file mode 100755 index 0000000..e60df40 --- /dev/null +++ b/buildSFML.sh @@ -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 \ No newline at end of file diff --git a/glosc.code-workspace b/glosc.code-workspace new file mode 100644 index 0000000..ad9a45f --- /dev/null +++ b/glosc.code-workspace @@ -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": {} +} \ No newline at end of file