-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfracplanet.pro
45 lines (32 loc) · 1.4 KB
/
fracplanet.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
TARGET = fracplanet
TEMPLATE = app
CONFIG+= qt stl precompile_header exceptions release # debug/release
QT += opengl
PRECOMPILED_HEADER = precompiled.h
HEADERS += $$system(ls *.h)
SOURCES += $$system(ls *.cpp)
LIBS += -lboost_program_options-mt -lGLU
DEFINES += QT_DLL
#######################################
# Version numbering. This is ENTIRELY controlled by what is echoed by the VERSION script
QMAKE_CXXFLAGS_RELEASE += '-DFRACPLANET_VERSION="$$VERSION_NUMBER"'
QMAKE_CXXFLAGS_DEBUG += '-DFRACPLANET_VERSION="$$VERSION_NUMBER"'
QMAKE_CXXFLAGS_RELEASE += '-DFRACPLANET_BUILD="$$VERSION_NUMBER (release build)"'
QMAKE_CXXFLAGS_DEBUG += '-DFRACPLANET_BUILD="$$VERSION_NUMBER (debug build)"'
# qmake's library code can use this too (but only for shared libraries which we don't use)
VERSION=$$VERSION_NUMBER
#######################################
# Disable assertions in release version
QMAKE_CXXFLAGS_RELEASE += -DNDEBUG
QMAKE_CFLAGS_RELEASE += -DNDEBUG
######################################
# Other stuff:
# Disable implicit cast from QString to char*
# If have trouble on sparc add -pthread -DBOOST_SP_USE_PTHREADS as a workround for debian bug 485434
# seems to cause trouble on x86 though so not used by default.
QMAKE_CXXFLAGS_RELEASE += -DQT_NO_ASCII_CAST
QMAKE_CXXFLAGS_DEBUG += -DQT_NO_ASCII_CAST
######################################
# Hide those crufty moc_ files away
MOC_DIR = moc
OBJECTS_DIR = obj