Commit 5fd163be authored by Dave Partyka's avatar Dave Partyka

ENH: fixup VPIC exports.

parent 80f5f6e0
project(VPIC)
SET(VPIC_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
CONFIGURE_FILE (${VPIC_SOURCE_DIR}/VPICDefinition.h.in
${VPIC_BINARY_DIR}/VPICDefinition.h)
SET(VPIC_SOURCES
VPICDataSet.cxx
VPICDefinition.cxx
......@@ -8,5 +15,7 @@ SET(VPIC_SOURCES
VPICView.cxx
)
INCLUDE_DIRECTORIES (${VPIC_SOURCE_DIR} ${VPIC_BINARY_DIR})
ADD_LIBRARY(VPIC ${VPIC_SOURCES})
TARGET_LINK_LIBRARIES(VPIC KWCommon)
......@@ -17,7 +17,7 @@
using namespace std;
class VPICREADER_EXPORT VPICDataSet {
class VPIC_EXPORT VPICDataSet {
public:
VPICDataSet();
~VPICDataSet();
......
#ifndef Definition_h
#define Definition_h
#ifndef VPICDefinition_h
#define VPICDefinition_h
#include <string>
#include <iostream>
......@@ -8,16 +8,17 @@
using namespace std;
// Now set up all of the export macros
#if defined(VTK_BUILD_SHARED_LIBS)
#cmakedefine01 BUILD_SHARED_LIBS
#if defined(VPICReader_EXPORTS)
#define VPICREADER_EXPORT VTK_ABI_EXPORT
// Now set up all of the export macros
#if defined(BUILD_SHARED_LIBS)
#if defined(VPIC_EXPORTS)
#define VPIC_EXPORT VTK_ABI_EXPORT
#else
#define VPICREADER_EXPORT VTK_ABI_IMPORT
#define VPIC_EXPORT VTK_ABI_IMPORT
#endif
#else
#define VPICREADER_EXPORT
#define VPIC_EXPORT
#endif
#define vpicNotUsed(x)
......
......@@ -18,7 +18,7 @@
using namespace std;
class VPICREADER_EXPORT VPICGlobal {
class VPIC_EXPORT VPICGlobal {
public:
VPICGlobal();
~VPICGlobal();
......
......@@ -17,7 +17,7 @@
using namespace std;
class VPICREADER_EXPORT VPICHeader {
class VPIC_EXPORT VPICHeader {
public:
VPICHeader();
VPICHeader(FILE* fp);
......
......@@ -13,7 +13,7 @@
using namespace std;
class VPICREADER_EXPORT VPICPart {
class VPIC_EXPORT VPICPart {
public:
VPICPart(int id);
~VPICPart();
......
......@@ -20,7 +20,7 @@
using namespace std;
class VPICREADER_EXPORT VPICView {
class VPIC_EXPORT VPICView {
public:
VPICView(int r, int t, VPICGlobal& global);
~VPICView();
......
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