First preperations for DLL Build on Windows

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@691 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-09-23 13:53:10 +00:00
parent 475115c3cf
commit dc1e08ebb1
3 changed files with 29 additions and 4 deletions

View File

@@ -36,8 +36,15 @@ endif()
if (WIN32)
# OpenMesh has no dll exports so we have to build a static library on windows
acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
if ( OPENMESH_BUILD_SHARED )
# Experimental Feature!!!!
acg_add_library (OpenMeshCore SHARED ${sources} ${headers})
else()
# OpenMesh has no dll exports so we have to build a static library on windows
acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
endif()
else ()
acg_add_library (OpenMeshCore SHAREDANDSTATIC ${sources} ${headers})
set_target_properties (OpenMeshCore PROPERTIES VERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR}

View File

@@ -36,8 +36,15 @@ endif()
if (WIN32)
# OpenMesh has no dll exports so we have to build a static library on windows
acg_add_library (OpenMeshTools STATIC ${sources} ${headers})
if ( OPENMESH_BUILD_SHARED )
# Experimental Feature!!!!
acg_add_library (OpenMeshTools SHARED ${sources} ${headers})
else()
# OpenMesh has no dll exports so we have to build a static library on windows
acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
endif()
else ()
acg_add_library (OpenMeshTools SHAREDANDSTATIC ${sources} ${headers})
set_target_properties (OpenMeshTools PROPERTIES VERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR}