Skip to content

Instantly share code, notes, and snippets.

@demonixis
Created February 16, 2014 17:59
Show Gist options
  • Save demonixis/9038134 to your computer and use it in GitHub Desktop.
Save demonixis/9038134 to your computer and use it in GitHub Desktop.
My QtCreator project file to use with SDL2
TEMPLATE = app
CONFIG += console
QMAKE_CXXFLAGS += -std=c++11
CONFIG -= app_bundle
CONFIG -= qt
win32 {
INCLUDEPATH += ../ThirdParty/windows/include
LIBS += -LC:../ThirdParty/windows/lib -lSDL2 -lSDL2_image -lSDL2_ttf
}
unix:!macx {
INCLUDEPATH += /usr/local/include/SDL2
LIBS += -LC:/usr/local/lib -lSDL2 -lSDL2_image -lSDL2_ttf
}
LIBS += -LC:/usr/lib -lm
SOURCES += \
SourceA.h
SourceA.cpp
SourceB.h
SourceB.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment