Only depend on fixbundle, if standalone

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@507 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-01-18 10:37:07 +00:00
parent ae03ae89d4
commit d5e2810458

View File

@@ -15,19 +15,24 @@ add_subdirectory (mconvert)
add_subdirectory (VDProgMesh/mkbalancedpm) add_subdirectory (VDProgMesh/mkbalancedpm)
add_subdirectory (VDProgMesh/Analyzer) add_subdirectory (VDProgMesh/Analyzer)
# Add non ui apps as dependency before fixbundle # Only call fixbundle, when we are building OpenMesh standalone
if ( WIN32 ) if(${PROJECT_NAME} MATCHES "OpenMesh")
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
# Add non ui apps as dependency before fixbundle
if ( WIN32 )
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
# let bundle generation depend on all targets
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
endif()
endif()
# Add non ui apps as dependency before fixbundle
if ( APPLE)
# let bundle generation depend on all targets # let bundle generation depend on all targets
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer ) add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
endif() endif()
endif()
# Add non ui apps as dependency before fixbundle endif() # Project is OpenMesh standalone
if ( APPLE)
# let bundle generation depend on all targets
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
endif()
# find needed packages for gui applications # find needed packages for gui applications
find_package (OpenGL) find_package (OpenGL)