-
Notifications
You must be signed in to change notification settings - Fork 4
/
skyviewer.pro
122 lines (119 loc) · 3.16 KB
/
skyviewer.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File generated by kdevelop's qmake manager.
# -------------------------------------------
# Subdir relative project main directory: .
# Target is an application:
FORMS += mainwindow.ui \
histogramwidget.ui \
rangecontrol.ui \
controldialog.ui
HEADERS += mainwindow.h \
str_funcs.h \
map_exception.h \
debug.h \
outlog.h \
heal.h \
pixel.h \
skymap.h \
healpixmap.h \
colortable.h \
define_colortable.h \
glpoint.h \
face.h \
boundary.h \
rigging.h \
skytexture.h \
polarargline.h \
skyviewer.h \
histogram.h \
histoview.h \
histogramwidget.h \
enums.h \
rangecontrol.h \
controldialog.h \
selectedpixelmodel.h
SOURCES += main.cpp \
mainwindow.cpp \
str_funcs.cpp \
map_exception.cpp \
debug.cpp \
outlog.cpp \
heal.cpp \
pixel.cpp \
skymap.cpp \
healpixmap.cpp \
colortable.cpp \
face.cpp \
boundary.cpp \
rigging.cpp \
skytexture.cpp \
polarargline.cpp \
skyviewer.cpp \
histogram.cpp \
histogramwidget.cpp \
histoview.cpp \
rangecontrol.cpp \
controldialog.cpp \
selectedpixelmodel.cpp
RESOURCES = skyviewer.qrc
QT_VERSION=$$[QT_VERSION]
LANGUAGE = C++
TEMPLATE = app
CONFIG += release warn_on qt thread
CONFIG += thread
LIBS += -L/usr/local/lib -lchealpix -lcfitsio
QMAKE_CXXFLAGS="-DTOASCII=toAscii -DFROMASCII=fromAscii"
QT += core
contains( QT_VERSION, "^4\..*" ){
QT += xml opengl
}
contains( QT_VERSION, "^5\..*" ){
QT += widgets gui xml opengl
QMAKE_CXXFLAGS="-DTOASCII=toLatin1 -DFROMASCII=fromLatin1"
}
QMAKE_CFLAGS += $$(CFLAGS)
QMAKE_CXXFLAGS += $$(CXXFLAGS)
QMAKE_LFLAGS += $$(LDFLAGS)
unix{
UI_DIR = ui
MOC_DIR = moc
OBJECTS_DIR = obj
INCLUDE_PATH = $$INCLUDE_DIR
INCLUDEPATH *= $$INCLUDE_PATH
DEPENDPATH *= $$INCLUDE_PATH
isEmpty( PREFIX ){
PREFIX=/usr/local
}
isEmpty( LIB_DIR ){
LIB_DIR = $$PREFIX/lib
}
isEmpty( INCLUDE_DIR ){
INCLUDE_DIR = $$PREFIX/include
}
LIBS += -L$$LIB_DIR
contains( QT_VERSION, "^4\..*" ){
LIBS += -lQGLViewer
}
contains( QT_VERSION, "^5\..*" ){
LIBS += -lQGLViewer-qt5
}
# !exists( $$INCLUDE_DIR/QGLViewer/qglviewer.h ){
# message( Unable to find QGLViewer/qglviewer.h in $$INCLUDE_PATH )
# message( Use qmake INCLUDE_DIR~Path/To/QGLViewer/HeaderFiles )
# error( Replace the ~ by the "equals" character in the above line )
# }
# !exists( $$LIB_DIR/libQGLViewer.so* ){
# message( Unable to find libQGLViewer.so in $$LIB_DIR )
# message( You should run qmake LIB_DIR~Path/To/QGLViewer/Lib.so )
# error( Replace the ~ by the "equals" character in the above line )
# }
macx{
LIBS *= -lobjc -lQGLViewer
}
}
win32{
QMAKE_CXXFLAGS = -TP -W1
QMAKE_CXXFLAGS_RELEASE = -O2
DEFINES *= QT_THREAD_SUPPORT
LIBS *= libQGLViewer
}
LIBS += -lchealpix -lcfitsio