Commit 5cae0438 authored by Laurent Belcour's avatar Laurent Belcour

Working plugin

parent 89bf6e79
......@@ -51,4 +51,4 @@ class function
vec _min, _max ;
} ;
//Q_DECLARE_INTERFACE(function, "Fitter.Function")
Q_DECLARE_INTERFACE(function, "Fitter.Function")
......@@ -12,8 +12,11 @@
#include "args.h"
#include "common.h"
class rational_function : public function
class rational_function : public QObject, public function
{
Q_OBJECT
Q_INTERFACES(function)
public: // methods
rational_function() ;
......
TEMPLATE = subdirs
SUBDIRS = \
# rational_function \
rational_fitter_cgal \
rational_fitter_quadprog \
rational_fitter_quadproge \
rational_fitter_eigen \
rational_fitter_matlab
rational_fitter_matlab \
rational_function
......@@ -16,8 +16,8 @@ HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lrational_function \
-lrational_data
-lcore
#QMAKE_CXXFLAGS += -fPIC
......@@ -15,7 +15,6 @@ HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lrational_function \
-lrational_data
-lcore
#QMAKE_CXXFLAGS += -fPIC
......@@ -15,8 +15,7 @@ HEADERS = rational_fitter.h
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lrational_function \
-lrational_data
-lcore
#QMAKE_CXXFLAGS += -fPIC
......@@ -15,6 +15,5 @@ HEADERS = rational_fitter.h \
SOURCES = rational_fitter.cpp
LIBS += -L../../build \
-lrational_function \
-lrational_data
-lcore
......@@ -13,11 +13,8 @@
#include <core/args.h>
#include <core/common.h>
class rational_function_chebychev : public QObject, public rational_function
class rational_function_chebychev : public rational_function
{
Q_OBJECT
Q_INTERFACES(function rational_function)
public: // methods
rational_function_chebychev() ;
......
TEMPLATE = lib
CONFIG *= static \
qt
CONFIG *= qt \
plugin
DESTDIR = ../../build
......@@ -8,6 +8,10 @@ INCLUDEPATH += ../..
HEADERS = rational_function.h
SOURCES = rational_function.cpp
LIBS += -L../../build \
-lcore
#QMAKE_CXXFLAGS += -frounding-math \
# -fPIC \
# -g
......
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