/
qt-todo.pro
60 lines (50 loc) · 1.27 KB
/
qt-todo.pro
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
######################################################################
# Automatically generated by qmake (2.01a) Fri Jun 14 15:04:13 2019
######################################################################
TEMPLATE = app
TARGET = qt-todo
DEPENDPATH += . src ui headers
INCLUDEPATH += . headers headers_ui
UI_DIR = headers_ui
MOC_DIR = build
# Put object files in the build directory
OBJECTS_DIR = ./build
# Check if the test suite or the application is supposed to be made
contains("test", 1) {
# Test suite setup
SOURCES += testing/*.cpp
HEADERS += testing/catch.hpp
DESTDIR = ./testing
} else {
# Normal build setup
SOURCES += main.cpp
DESTDIR = ./build
}
# Version specific settings
# Qt5 https://stackoverflow.com/questions/18663331/how-to-check-the-selected-version-of-qt-in-a-pro-file
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
unix {
target.path = /usr/bin
target.files = build/qt-todo
INSTALLS += target
}
}
# Platform specific settings
# Windows
win32 {
QMAKE_CXXFLAGS += /std:c++14
}
# Non Darwin Unix
unix:!macx {
QMAKE_CXXFLAGS += -std=c++11
}
# Darwin (macOS)
macx {
QMAKE_CXXFLAGS += -std=c++11
}
# Input
FORMS += ui/*.ui
SOURCES += src/*.cpp
HEADERS += headers/*.h
RESOURCES = resources.qrc