Skip to content

Commit

Permalink
4-25
Browse files Browse the repository at this point in the history
  • Loading branch information
jmnie committed Apr 26, 2020
1 parent 2893d44 commit b9a3fff
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.out
29 changes: 29 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"configurations": [

{
"name": "linux",
"includePath": [
"${workspaceRoot}",
"/usr/include",
"/usr/include/GL/",
"/usr/local/include"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include",
"/usr/local/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"compilerPath": "/usr/local/cuda-9.0/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17"
}

],
"version": 4
}
34 changes: 34 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/Builds/Linux_Build/engine",
"preLaunchTask": "Build",
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"linux": {
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"osx": {
"program": "${workspaceRoot}/Builds/Mac_Build/engine",
"MIMode": "lldb"
},
"windows": {
"program": "${workspaceRoot}/Builds/Win_Build/engine",
"miDebuggerPath": "C:\\MinGw\\bin\\gdb.exe"
}
}
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files.associations": {
"iostream": "cpp",
"cstdio": "cpp",
"ctime": "cpp",
"memory": "cpp",
"list": "cpp",
"vector": "cpp"
}
}
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.1.0",
"command": "g++",
"isShellCommand": true,
"showOutput": "always",
"linux": {
"tasks": [
{
"taskName": "Build",
"suppressTaskName": true,
"isBuildCommand": true,
"args": [
"-g",
"-std=c++11",
"main.cpp",
"-o", "Builds/Linux_Build/engine",
"-lGL",
"-lGLEW",
"-lGLU",
"-lSDL2main",
"-lSDL2",
"-lSDL2_image",
"-lSDL2_ttf"
]
}
]
}
}
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# OBJS specifies which files to compile as part of the project
OBJS = drawDemo.cpp

# CC specifies which compiler we're using
CC = gcc -std=c++11

# COMPILER_FLAGS specifies the additional compilation options we're using
# -Wall will turn on all standard warnings
COMPILER_FLAGS = -Wall

# LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = -lGLU -lGL -lglut

# OBJ_NAME specifies the name of our exectuable
OBJ_NAME = main.out

#This is the target that compiles our executable
all: $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
Binary file added main
Binary file not shown.

0 comments on commit b9a3fff

Please sign in to comment.