add initial main.cc and Rsconsfile

This commit is contained in:
Josh Holtrop 2015-03-15 21:28:16 -04:00
commit cc0a92618d
2 changed files with 15 additions and 0 deletions

6
Rsconsfile Normal file
View File

@ -0,0 +1,6 @@
Rscons::Environment.new do |env|
sources = Dir["**/*.cc"]
env.parse_flags!("!pkg-config --cflags --libs Qt5Core Qt5Gui Qt5Widgets")
env.parse_flags!("-fPIE")
env.Program("app", sources)
end

9
main.cc Normal file
View File

@ -0,0 +1,9 @@
#include <QtGui>
#include <QApplication>
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
return app.exec();
}