summaryrefslogtreecommitdiff
path: root/ctor.cc
blob: a00b2fb0fe2558201a665d0d0e3a4256f1f3293c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// -*- c++ -*-
#include <libctor.h>

namespace
{
BuildConfigurations myConfigs()
{
	return
	{
		{
			.target = "qookie",  // output filename
			.sources = {
				"src/qookie.cc",
				"src/database.cc",
				"src/mainwindow.cc",
				"src/moc_mainwindow.cc",
			},
			.flags = {
				.cxxflags = {
					"-I/usr/include/qt5",
					"-I/usr/include/qt5/QtCore",
					"-I/usr/include/qt5/QtGui",
					"-I/usr/include/qt5/QtWidgets",
					"-fPIC",
				},
				.ldflags = {
					"-lQt5Core",
					"-lQt5Gui",
					"-lQt5Widgets",
					"-lsqlite3",
				}
			},
		}
	};
}
}

// Register callback
REG(myConfigs);