Disable apps completly if not standalone
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@509 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -6,6 +6,10 @@ endif()
|
||||
|
||||
if ( BUILD_APPS )
|
||||
|
||||
# Only call fixbundle, when we are building OpenMesh standalone
|
||||
if(${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
|
||||
|
||||
add_subdirectory (Dualizer)
|
||||
add_subdirectory (Decimating/commandlineDecimater)
|
||||
add_subdirectory (Smoothing)
|
||||
@@ -15,8 +19,8 @@ add_subdirectory (mconvert)
|
||||
add_subdirectory (VDProgMesh/mkbalancedpm)
|
||||
add_subdirectory (VDProgMesh/Analyzer)
|
||||
|
||||
# Only call fixbundle, when we are building OpenMesh standalone
|
||||
if(${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
|
||||
|
||||
|
||||
# Add non ui apps as dependency before fixbundle
|
||||
if ( WIN32 )
|
||||
@@ -32,7 +36,6 @@ if(${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
|
||||
endif()
|
||||
|
||||
endif() # Project is OpenMesh standalone
|
||||
|
||||
# find needed packages for gui applications
|
||||
find_package (OpenGL)
|
||||
@@ -99,6 +102,8 @@ else ()
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
endif() # Project is OpenMesh standalone
|
||||
|
||||
else (BUILD_APPS)
|
||||
|
||||
message ("Building Apps disabled by user.")
|
||||
|
||||
Reference in New Issue
Block a user