add OPENMESHDLLEXPORT macro for the windows build

This commit is contained in:
Alexandra Heuschling
2021-01-16 17:56:55 +01:00
parent 830fc2554c
commit 0d9a2bcf3c

View File

@@ -64,7 +64,7 @@ namespace OpenMesh {
* The type of the property is specified in the classes derived from this class. * The type of the property is specified in the classes derived from this class.
* *
* */ * */
class PropertyCreator class OPENMESHDLLEXPORT PropertyCreator
{ {
public: public:
@@ -112,7 +112,7 @@ template <> inline void PropertyCreator::create_property<MeshHandle> (BaseKer
/// Helper class that contains the implementation of the create_<HandleT>_property methods. /// Helper class that contains the implementation of the create_<HandleT>_property methods.
/// Implementation is injected into PropertyCreatorT. /// Implementation is injected into PropertyCreatorT.
template <typename PropertyCreatorT> template <typename PropertyCreatorT>
class PropertyCreatorImpl : public PropertyCreator class OPENMESHDLLEXPORT PropertyCreatorImpl : public PropertyCreator
{ {
public: public:
std::string type_id_string() override { return get_type_name<typename PropertyCreatorT::type>(); } std::string type_id_string() override { return get_type_name<typename PropertyCreatorT::type>(); }
@@ -135,7 +135,7 @@ protected:
/// Actual PropertyCreators specialize this class in order to add properties of type T /// Actual PropertyCreators specialize this class in order to add properties of type T
namespace { namespace {
template <typename T> template <typename T>
class PropertyCreatorT : public PropertyCreatorImpl<PropertyCreatorT<T>> class OPENMESHDLLEXPORT PropertyCreatorT : public PropertyCreatorImpl<PropertyCreatorT<T>>
{ {
}; };
} }
@@ -172,7 +172,7 @@ static PropertyCreatorT<ClassName> OM_CONCAT(property_creator_registration_objec
* them without manually adding the property yourself you can register your type by calling the * them without manually adding the property yourself you can register your type by calling the
* OM_REGISTER_PROPERTY_TYPE(ClassName, TypeString) * OM_REGISTER_PROPERTY_TYPE(ClassName, TypeString)
* */ * */
class PropertyCreationManager class OPENMESHDLLEXPORT PropertyCreationManager
{ {
public: public: