MinGW support

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@471 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2011-11-28 13:31:31 +00:00
parent a95789f417
commit 214bc1f278
8 changed files with 47 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ if ( NOT DEFINED BUILD_APPS )
endif()
if (WIN32)
if ( BUILD_APPS )
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" AND BUILD_APPS )
add_custom_target (fixbundle ALL
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.win.cmake" )
endif()
@@ -59,8 +59,10 @@ if (WIN32 AND BUILD_APPS )
configure_file ("${CMAKE_SOURCE_DIR}/cmake/fixbundle.cmake.win.in"
"${CMAKE_BINARY_DIR}/fixbundle.win.cmake" @ONLY IMMEDIATE)
# let bundle generation depend on all targets
add_dependencies (fixbundle QtViewer DecimaterGui)
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
# let bundle generation depend on all targets
add_dependencies (fixbundle QtViewer DecimaterGui)
endif()
endif()