Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/cvsba.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
#include <vector>
#include <iostream>
#include <opencv2/core/core.hpp>

#include "libcvsba_export.h"

namespace cvsba {

class Sba {
class LIBCVSBA_EXPORT Sba {
public:

// TYPE type: type of bundle adjustment optimization. Posible values:
Expand Down
29 changes: 29 additions & 0 deletions src/libcvsba_export.h
Original file line number Diff line number Diff line change
@@ -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