Compare commits

...

2 Commits

3 changed files with 8 additions and 6 deletions

View File

@ -8,19 +8,17 @@ SFMLFLAGS = -lsfml-system -lsfml-window -lsfml-graphics
# If SFML is not installed in a standard path, you need to tell the dynamic linker where to find the SFML libraries first by specifying LD_LIBRARY_PATH:
# export LD_LIBRARY_PATH=<sfml-install-path>/lib && ./sfml-app
quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Timing.o Display.o
quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Display.o
# link with sfml libs; -lsfml-network -lsfml-audio currently not needed
$(CXX) $(CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Timing.o Display.o $(SFMLFLAGS)
$(CXX) $(CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Display.o $(SFMLFLAGS)
performance: performance.cpp Display.o
$(CXX) $(CXXFLAGS) -o performance Display.o performance.cpp $(SFMLFLAGS)
main.o: main.cpp Timing.h
main.o: main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
Display.o: Display.h
Timing.o: Timing.h
clean :
-rm *.o quickhull performance

View File

@ -2,7 +2,8 @@
#define QUICKHULL_H
#include <list>
#include <bits/stdc++.h> // For INT_MIN & INT_MAX
#include <limits.h>
#include "Point.h"
#include "Line.h"

View File

@ -1,3 +1,6 @@
#include <chrono>
#include <iostream>
#include "Quickhull.h"
#include "NumberGenerator.h"
#include "Display.h"