summaryrefslogtreecommitdiff
path: root/ctor.cc
blob: 72c5cbbf2c736d2386c2ef516cc9fca73c798165 (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
40
41
// -*- 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",
				"src/viewer.cc",
				"src/moc_viewer.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);