-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSPAMSGlue.pro
53 lines (42 loc) · 1.09 KB
/
SPAMSGlue.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
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
#Force use of c++11
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS -= -std=gnu++11
QMAKE_CXXFLAGS -= -std=c++0x
CONFIG += c++11
# Pass flags for bebugging
# Override Qt's default -O2 flag in release mode
CONFIG(debug, debug|release) {
DEFINES += "DEBUG"
} else {
DEFINES += "NDEBUG"
CONFIG += optimize_full
# QMAKE_CXXFLAGS *= -Ofast
QMAKE_CXXFLAGS_RELEASE *= -mtune=native
QMAKE_CXXFLAGS_RELEASE *= -march=native
}
# Eigen
INCLUDEPATH += /usr/include/eigen3
# SPAMS
INCLUDEPATH += ../spams/src \
../spams/src/spams/dictLearn \
../spams/src/spams/decomp \
../spams/src/spams/linalg \
../spams/src/spams/prox \
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
# SPAMS has unused parameters in source -- surpress warnings
QMAKE_CXXFLAGS+= -Wno-unused-parameter
# for FISTA
LIBS += -lstdc++ \
-lblas \
-llapack
# Armadillo
LIBS += -larmadillo
HEADERS += spams_eigen_glue.h \
test_fista.h \
fista_flat.h
SOURCES += main.cpp