Including SFML library in assignment submission

64 views Asked by At

I finished my assignment for a class I'm taking, and I wrote it in C++ and used SFML to animate some portions of it. To make sure that the program can actually run in the case that whoever is trying to use it doesn't have SFML installed, can I simply include the entire SFML library within my program directory? If so, how should I go about doing that? I am using a Makefile to compile my code, so I can specify where the program should look for the library.

Everything works so far, but want to ensure it will work when I submit it.

Here is my Makefile:

CC=g++
SFML_BASE_PATH=./sfml/2.6.1
CXXFLAGS=-std=c++11 -I$(SFML_BASE_PATH)/include
LDFLAGS=-L$(SFML_BASE_PATH)/lib -lsfml-graphics -lsfml-window -lsfml-system
DEPS = AStar.hpp
OBJ = main.o Search.o

%.o: %.cpp $(DEPS)
    $(CC) -c -o $@ $< $(CXXFLAGS)

makepancake: $(OBJ)
    $(CC) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)

.PHONY: clean

clean:
    rm -f *.o makepancake
0

There are 0 answers