diff --git a/src/cvsba.h b/src/cvsba.h index 192953c..367e376 100644 --- a/src/cvsba.h +++ b/src/cvsba.h @@ -26,9 +26,12 @@ #include #include #include + +#include "libcvsba_export.h" + namespace cvsba { -class Sba { +class LIBCVSBA_EXPORT Sba { public: // TYPE type: type of bundle adjustment optimization. Posible values: diff --git a/src/libcvsba_export.h b/src/libcvsba_export.h new file mode 100644 index 0000000..6486bd3 --- /dev/null +++ b/src/libcvsba_export.h @@ -0,0 +1,29 @@ +#ifndef LIBCVSBA_EXPORT_H +#define LIBCVSBA_EXPORT_H + + +#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__) +# ifdef LIBCVSBA_STATIC_DEFINE +# define LIBCVSBA_EXPORT +# define LIBCVSBA_NO_EXPORT +# else +# ifndef LIBCVSBA_EXPORT +# ifdef LIBCVSBA_EXPORTS + /* We are building this library */ +# define LIBCVSBA_EXPORT __declspec(dllexport) +# else + /* We are using this library */ +# define LIBCVSBA_EXPORT __declspec(dllimport) +# endif +# endif + +# ifndef LIBCVSBA_NO_EXPORT +# define LIBCVSBA_NO_EXPORT +# endif +# endif +#else +# define LIBCVSBA_EXPORT +# define LIBCVSBA_NO_EXPORT +#endif + +#endif