Commit 426e96b5 authored by Jan Möbius's avatar Jan Möbius

Disable apps completly if not standalone

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@509 fdac6126-5c0c-442c-9429-916003d36597
parent eac3cdc7
......@@ -6,18 +6,22 @@ endif()
if ( BUILD_APPS )
add_subdirectory (Dualizer)
add_subdirectory (Decimating/commandlineDecimater)
add_subdirectory (Smoothing)
add_subdirectory (Subdivider/commandlineSubdivider)
add_subdirectory (Subdivider/commandlineAdaptiveSubdivider)
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_subdirectory (Dualizer)
add_subdirectory (Decimating/commandlineDecimater)
add_subdirectory (Smoothing)
add_subdirectory (Subdivider/commandlineSubdivider)
add_subdirectory (Subdivider/commandlineAdaptiveSubdivider)
add_subdirectory (mconvert)
add_subdirectory (VDProgMesh/mkbalancedpm)
add_subdirectory (VDProgMesh/Analyzer)
# Add non ui apps as dependency before fixbundle
if ( WIN32 )
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
......@@ -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.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment