Fix build and sloppy build errors

This commit is contained in:
hodasemi 2019-05-31 14:05:45 +02:00
parent b574b9040b
commit cc03214142
4 changed files with 55 additions and 32 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
exercise1/build/
exercise2/build/
exercise3/build/
.vscode/ipch

21
.vscode/tasks.json vendored
View file

@ -36,6 +36,27 @@
"clear": true
}
},
{
"label": "Run Exercise 3",
"type": "shell",
"command": "exercise3/build/cmake/./exercise3",
"dependsOn": "Build Exercise 3",
"problemMatcher": []
},
{
"label": "Build Exercise 3",
"type": "shell",
"command": "cd exercise3/build/cmake && cmake . && make -j4",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
}
},
{
"label": "Run Exercise 2",
"type": "shell",

View file

@ -55,4 +55,4 @@ add_executable(exercise3
)
# Bibliotheken linken
target_link_libraries(exercise3 ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
target_link_libraries(exercise3 ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} -lpthread)

View file

@ -22,6 +22,7 @@ At the end of this file the data types "point2d", "point3d" and
#include <iostream>
#include <algorithm>
#include <cassert>
#include <numeric>
#include <math.h>
#ifdef _MSC_VER