- Reorganize DLL Macros
- Added DLL import definition to Apps git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@697 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -9,6 +9,11 @@ if ( BUILD_APPS )
|
|||||||
# Only build and fixbundle apps, when we are building OpenMesh standalone
|
# Only build and fixbundle apps, when we are building OpenMesh standalone
|
||||||
if(${PROJECT_NAME} MATCHES "OpenMesh")
|
if(${PROJECT_NAME} MATCHES "OpenMesh")
|
||||||
|
|
||||||
|
if ( WIN32 AND OPENMESH_BUILD_SHARED )
|
||||||
|
#!!!! Experimental Feature!!!
|
||||||
|
add_definitions(-DOPENMESHDLL ...)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory (Dualizer)
|
add_subdirectory (Dualizer)
|
||||||
add_subdirectory (Decimating/commandlineDecimater)
|
add_subdirectory (Decimating/commandlineDecimater)
|
||||||
add_subdirectory (Smoothing)
|
add_subdirectory (Smoothing)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ if (WIN32)
|
|||||||
|
|
||||||
if ( OPENMESH_BUILD_SHARED )
|
if ( OPENMESH_BUILD_SHARED )
|
||||||
# Experimental Feature!!!!
|
# Experimental Feature!!!!
|
||||||
add_definitions( -DOPENMESHDLL)
|
add_definitions( -DOPENMESHDLL -DBUILDOPENMESHDLL)
|
||||||
acg_add_library (OpenMeshCore SHARED ${sources} ${headers})
|
acg_add_library (OpenMeshCore SHARED ${sources} ${headers})
|
||||||
else()
|
else()
|
||||||
# OpenMesh has no dll exports so we have to build a static library on windows
|
# OpenMesh has no dll exports so we have to build a static library on windows
|
||||||
|
|||||||
@@ -47,12 +47,12 @@
|
|||||||
#ifndef OPENMESHDLLEXPORT
|
#ifndef OPENMESHDLLEXPORT
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef OPENMESHDLL
|
#ifdef OPENMESHDLL
|
||||||
#ifdef USEOPENMESH
|
#ifdef BUILDOPENMESHDLL
|
||||||
#define OPENMESHDLLEXPORT __declspec(dllimport)
|
#define OPENMESHDLLEXPORT __declspec(dllexport)
|
||||||
#define OPENMESHDLLEXPORTONLY
|
#define OPENMESHDLLEXPORTONLY __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#define OPENMESHDLLEXPORT __declspec(dllexport)
|
#define OPENMESHDLLEXPORT __declspec(dllimport)
|
||||||
#define OPENMESHDLLEXPORTONLY __declspec(dllexport)
|
#define OPENMESHDLLEXPORTONLY
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define OPENMESHDLLEXPORT
|
#define OPENMESHDLLEXPORT
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ if (WIN32)
|
|||||||
|
|
||||||
if ( OPENMESH_BUILD_SHARED )
|
if ( OPENMESH_BUILD_SHARED )
|
||||||
# Experimental Feature!!!!
|
# Experimental Feature!!!!
|
||||||
add_definitions( -DOPENMESHDLL)
|
add_definitions( -DOPENMESHDLL -DBUILDOPENMESHDLL)
|
||||||
acg_add_library (OpenMeshTools SHARED ${sources} ${headers})
|
acg_add_library (OpenMeshTools SHARED ${sources} ${headers})
|
||||||
else()
|
else()
|
||||||
# OpenMesh has no dll exports so we have to build a static library on windows
|
# OpenMesh has no dll exports so we have to build a static library on windows
|
||||||
|
|||||||
Reference in New Issue
Block a user