Commit 5f9784f2 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Updating the qmake configuration to handle library testing, much like the

scons configuration files.
parent 507dc269
......@@ -4,6 +4,7 @@
# ${ALTA}/external/ceres* directory once the obtain_ceres.py script has
# been runned. You need to have the env variable ALTA defined.
CONFIG += ceres
INCLUDEPATH += $$(ALTA)/external/build/include
LIBS += -L$$(ALTA)/external/build/lib \
-lceres -lglog
......@@ -3,6 +3,8 @@
# Configuration file for CGAL library in the case where it is installed in
# the default location for your configuration.
CONFIG += cgal
macx {
INCLUDEPATH += /opt/local/include
LIBS += -L/opt/local/lib
......
......@@ -3,4 +3,6 @@
# Configuration file for the Eigen package required for the CORE and
# some PLUGINS. You need to have the env variable ALTA defined.
CONFIG += eigen
INCLUDEPATH += $$(ALTA)/external/build/include $$(ALTA)/external/build/include/Eigen
......@@ -5,5 +5,14 @@
# but must be updated for other OS/distributions.
#
INCLUDEPATH += /usr/include/OpenEXR/
LIBS += -L/usr/lib/x86_64-linux-gnu -lHalf -lIlmThread -lIlmImf
CONFIG += openexr
unix:!macx {
INCLUDEPATH += /usr/include/OpenEXR/
LIBS += -L/usr/lib/x86_64-linux-gnu -lHalf -lIlmThread -lIlmImf
}
macx {
INCLUDEPATH += /opt/local/include/OpenEXR
LIBS += -L/opt/local/lib -lHalf -lIlmThread -lIlmImf
}
......@@ -5,5 +5,7 @@
# be updated for other OS/distributions.
#
CONFIG += openmp
QMAKE_CXXFLAGS += -fopenmp
LIBS += -lgomp
......@@ -4,5 +4,6 @@
# ${ALTA}/external/quadprog++ directory provided with the ALTA
# library. You need to have the env variable ALTA defined.
CONFIG _+= quadprog
INCLUDEPATH += $$(ALTA)/external/quadprog++
LIBS += -L$$(ALTA)/external/build/lib -lquadprog++
LIBS += -L$$(ALTA)/external/build/lib -lquadprog++
TARGET = nonlinear_fitter_ipopt
TEMPLATE = lib
CONFIG *= plugin \
ipopt \
eigen
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../..
load(eigen)
load(ipopt)
packagesExist(eigen, ipopt) {
HEADERS = fitter.h
SOURCES = fitter.cpp
DESTDIR = ../../build
INCLUDEPATH += ../..
LIBS += -L../../build \
-lcore
HEADERS = fitter.h
SOURCES = fitter.cpp
LIBS += -L../../build \
-lcore
}
TARGET = nonlinear_fitter_nlopt
TEMPLATE = lib
CONFIG *= plugin \
nlopt \
eigen
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../..
load(eigen)
load(nlopt)
HEADERS = fitter.h
SOURCES = fitter.cpp
packagesExist(eigen, nlopt) {
DESTDIR = ../../build
INCLUDEPATH += ../..
LIBS += -L../../build \
-lcore
HEADERS = fitter.h
SOURCES = fitter.cpp
LIBS += -L../../build \
-lcore
}
TEMPLATE = lib
CONFIG += plugin \
eigen \
cgal
CONFIG += plugin
CONFIG -= qt
DESTDIR = ../../build
load(eigen)
load(cgal)
packagesExist(eigen, cgal) {
DESTDIR = ../../build
INCLUDEPATH += ../..
INCLUDEPATH += ../..
HEADERS = rational_fitter_cgal.h
SOURCES = rational_fitter_cgal.cpp
HEADERS = rational_fitter_cgal.h
SOURCES = rational_fitter_cgal.cpp
LIBS += -L../../build \
-lcore
LIBS += -L../../build \
-lcore
unix {
QMAKE_CXXFLAGS += -frounding-math
unix {
QMAKE_CXXFLAGS += -frounding-math
}
}
TARGET = rational_fitter_dca
TEMPLATE = lib
CONFIG *= qt \
plugin \
eigen \
matlab
DESTDIR = ../../build
load(eigen)
load(matlab)
packagesExist(eigen, matlab) {
DESTDIR = ../../build
INCLUDEPATH += ../rational_function \
../rational_data \
../..
INCLUDEPATH += ../rational_function \
../rational_data \
../..
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
LIBS += -L../../build \
-lcore
}
TARGET = rational_fitter_matlab
TEMPLATE = lib
CONFIG *= plugin \
eigen \
matlab
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../rational_function \
../rational_data \
../..
load(eigen)
load(matlab)
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
packagesExist(eigen,matlab) {
DESTDIR = ../../build
INCLUDEPATH += ../rational_function \
../rational_data \
../..
LIBS += -L../../build \
-lcore
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
}
TARGET = rational_fitter_parsec_multi
TEMPLATE = lib
CONFIG *= plugin \
eigen \
quadprog \
parsec \
coreblas
TARGET = rational_fitter_parsec_multi
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
load(eigen)
load(quadprog)
load(parsec)
load(coreblas)
INCLUDEPATH += ../rational_function \
../rational_data \
../..
packagesExist(eigen, quadprog, parsec, coreblas) {
DESTDIR = ../../build
HEADERS = rational_fitter.h \
quadratic_program.h
SOURCES = rational_fitter.cpp
INCLUDEPATH += ../rational_function \
../rational_data \
../..
LIBS += -L../../build \
-lcore
HEADERS = rational_fitter.h \
quadratic_program.h
SOURCES = rational_fitter.cpp
#QMAKE_CXXFLAGS += -fPIC
QMAKE_CXXFLAGS += -fPIC -g
LIBS += -L../../build \
-lcore
!debug:QMAKE_CXXFLAGS += -fPIC
debug:QMAKE_CXXFLAGS += -fPIC -g
}
TARGET = rational_fitter_parsec_one
TEMPLATE = lib
CONFIG *= plugin \
eigen \
quadprog \
parsec \
coreblas
TARGET = rational_fitter_parsec_one
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
load(eigen)
load(quadprog)
load(parsec)
load(coreblas)
INCLUDEPATH += ../rational_function \
../rational_data \
../..
packagesExist(eigen, quadprog, parsec, coreblas) {
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
DESTDIR = ../../build
LIBS += -L../../build \
-lcore
INCLUDEPATH += ../rational_function \
../rational_data \
../..
QMAKE_CXXFLAGS += -g3 -O0
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
QMAKE_CXXFLAGS += -g3 -O0
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment