Commit 6186b258 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Fixing the conditional compilation of plugins in Qt.

parent 7e8182ff
......@@ -12,7 +12,7 @@ exists($${EXTERNAL_INC}/ceres/ceres.h) {
CONFIG += ceres
INCLUDEPATH += $$(ALTA)/external/build/include
LIBS += -L$$(ALTA)/external/build/lib \
-lceres -lglog
-lceres -lglog -lminiglog
macx {
LIBS *= -lamd -lcamd -lcolamd -lcholmod -lcxsparse
......
......@@ -41,7 +41,7 @@ class plugins_manager
//! \brief get an instance of the fitter that is defined in the plugin with
//! filename n. Return null if no one exist.
static ptr<fitter> get_fitter(const std::string& n) ;
//! \brief check if a data object and a function object are compatibles.
//! this has to be done before fitting to ensure that the
......
load(openexr)
load(eigen)
requires(contains(CONFIG, openexr))
requires(contains(CONFIG, eigen))
TEMPLATE = lib
CONFIG *= plugin \
eigen \
openexr
CONFIG *= plugin
DESTDIR = ../../build
......@@ -11,4 +15,4 @@ SOURCES = data.cpp
LIBS += -L../../build \
-lcore
-lcore
load(flann)
load(eigen)
requires(contains(CONFIG, flann))
requires(contains(CONFIG, eigen))
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
load(flann)
load(eigen)
packagesExist(flann, eigen) {
INCLUDEPATH += ../..
HEADERS = data.h
SOURCES = data.cpp
INCLUDEPATH += ../..
HEADERS = data.h
SOURCES = data.cpp
LIBS += -L../../build \
-lcore
LIBS += -L../../build \
-lcore
}
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
load(matlab)
load(eigen)
!contains(CONFIG, eigen)|!contains(CONFIG, matlab) {
unset(TARGET)
} else {
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, matlab))
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../..
HEADERS = data.h
SOURCES = data.cpp
INCLUDEPATH += ../..
HEADERS = data.h
SOURCES = data.cpp
LIBS += -L../../build \
-lcore
LIBS += -L../../build \
-lcore
}
load(ceres)
load(eigen)
!contains(CONFIG, ceres)|!contains(CONFIG, eigen) {
unset(TARGET)
} else {
TARGET = nonlinear_fitter_ceres
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../..
requires(contains(CONFIG, ceres))
requires(contains(CONFIG, eigen))
TARGET = nonlinear_fitter_ceres
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
HEADERS = fitter.h
SOURCES = fitter.cpp
INCLUDEPATH += ../..
LIBS += -L../../build \
-lcore
}
HEADERS = fitter.h
SOURCES = fitter.cpp
LIBS += -L../../build \
-lcore
load(eigen)
requires(contains(CONFIG, eigen))
TARGET = nonlinear_fitter_eigen
TEMPLATE = lib
CONFIG *= plugin \
eigen
CONFIG *= plugin
DESTDIR = ../../build
......
TARGET = nonlinear_fitter_ipopt
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
load(eigen)
load(ipopt)
packagesExist(eigen, ipopt) {
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, ipopt))
INCLUDEPATH += ../..
HEADERS = fitter.h
SOURCES = fitter.cpp
TARGET = nonlinear_fitter_ipopt
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../..
LIBS += -L../../build \
-lcore
}
HEADERS = fitter.h
SOURCES = fitter.cpp
LIBS += -L../../build \
-lcore
load(eigen)
load(nlopt)
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, nlopt))
TARGET = nonlinear_fitter_nlopt
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
load(eigen)
load(nlopt)
packagesExist(eigen, nlopt) {
INCLUDEPATH += ../..
HEADERS = fitter.h
SOURCES = fitter.cpp
INCLUDEPATH += ../..
LIBS += -L../../build \
-lcore
}
HEADERS = fitter.h
SOURCES = fitter.cpp
LIBS += -L../../build \
-lcore
\ No newline at end of file
load(cgal)
load(eigen)
requires(contains(CONFIG, cgal))
requires(contains(CONFIG, eigen))
!contains(CONFIG, eigen)|!contains(CONFIG, cgal) {
unset(TARGET)
} else {
TARGET = rational_fitter_cgal
TEMPLATE = lib
CONFIG += plugin
CONFIG -= qt
DESTDIR = ../../build
TARGET = rational_fitter_cgal
TEMPLATE = lib
CONFIG += plugin
CONFIG -= qt
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
}
\ No newline at end of file
load(eigen)
load(matlab)
!contains(CONFIG, eigen)|!contains(CONFIG, matlab) {
unset(TARGET)
} else {
TARGET = rational_fitter_dca
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../rational_function \
../rational_data \
../..
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, matlab))
TARGET = rational_fitter_dca
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
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
load(eigen)
requires(contains(CONFIG, eigen))
TARGET = rational_fitter_eigen
TEMPLATE = lib
CONFIG *= plugin \
eigen
CONFIG *= plugin
DESTDIR = ../../build
......
load(eigen)
requires(contains(CONFIG, eigen))
TARGET = rational_fitter_leastsquare
TEMPLATE = lib
CONFIG *= plugin \
eigen
CONFIG *= plugin
DESTDIR = ../../build
......@@ -14,9 +18,4 @@ HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
#QMAKE_CXXFLAGS += -fPIC
-lcore
\ No newline at end of file
load(eigen)
load(matlab)
!contains(CONFIG, eigen)|!contains(CONFIG, matlab) {
unset(TARGET)
} else {
TARGET = rational_fitter_matlab
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, matlab))
TARGET = rational_fitter_matlab
TEMPLATE = lib
CONFIG *= plugin
CONFIG -= qt
DESTDIR = ../../build
INCLUDEPATH += ../..
INCLUDEPATH += ../..
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
}
LIBS += -L../../build \
-lcore
\ No newline at end of file
load(eigen)
load(quadprog)
load(openmp)
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, quadprog))
TARGET = rational_fitter_parallel
TEMPLATE = lib
CONFIG *= plugin \
eigen \
quadprog \
openmp
CONFIG *= plugin
DESTDIR = ../../build
......@@ -16,8 +21,4 @@ HEADERS = rational_fitter.h \
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
#QMAKE_CXXFLAGS += -fPIC
#QMAKE_CXXFLAGS += -g
-lcore
\ No newline at end of file
TARGET = rational_fitter_parsec_multi
TEMPLATE = lib
CONFIG *= plugin
load(eigen)
load(quadprog)
load(parsec)
load(coreblas)
packagesExist(eigen, quadprog, parsec, coreblas) {
DESTDIR = ../../build
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, quadprog))
requires(contains(CONFIG, parsec))
requires(contains(CONFIG, coreblas))
TARGET = rational_fitter_parsec_multi
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
INCLUDEPATH += ../rational_function \
../rational_data \
../..
INCLUDEPATH += ../rational_function \
../rational_data \
../..
HEADERS = rational_fitter.h \
quadratic_program.h
SOURCES = rational_fitter.cpp
HEADERS = rational_fitter.h \
quadratic_program.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
LIBS += -L../../build \
-lcore
!debug:QMAKE_CXXFLAGS += -fPIC
debug:QMAKE_CXXFLAGS += -fPIC -g
}
!debug:QMAKE_CXXFLAGS += -fPIC
debug:QMAKE_CXXFLAGS += -fPIC -g
\ No newline at end of file
TARGET = rational_fitter_parsec_one
TEMPLATE = lib
CONFIG *= plugin
load(eigen)
load(quadprog)
load(parsec)
load(coreblas)
packagesExist(eigen, quadprog, parsec, coreblas) {
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, quadprog))
requires(contains(CONFIG, parsec))
requires(contains(CONFIG, coreblas))
TARGET = rational_fitter_parsec_one
TEMPLATE = lib
CONFIG *= plugin
DESTDIR = ../../build
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
QMAKE_CXXFLAGS += -g3 -O0
}
QMAKE_CXXFLAGS += -g3 -O0
load(eigen)
load(quadprog)
requires(contains(CONFIG, eigen))
requires(contains(CONFIG, quadprog))
TARGET = rational_fitter_quadprog
TEMPLATE = lib
CONFIG *= plugin \
eigen \
quadprog
CONFIG *= plugin
DESTDIR = ../../build
......@@ -14,7 +19,4 @@ HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lcore
#QMAKE_CXXFLAGS += -fPIC
-lcore
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