Added Option -DBUILD_APPS=OFF to skip building applications
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@161 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -14,11 +14,15 @@ add_subdirectory (Subdivider/commandlineAdaptiveSubdivider)
|
|||||||
add_subdirectory (mconvert)
|
add_subdirectory (mconvert)
|
||||||
|
|
||||||
# check for OpenGL, GLEW and GLUT as our required dependencies
|
# check for OpenGL, GLEW and GLUT as our required dependencies
|
||||||
if (QT4_FOUND AND OPENGL_FOUND AND GLEW_FOUND AND GLUT_FOUND)
|
if (QT4_FOUND AND OPENGL_FOUND AND GLEW_FOUND AND GLUT_FOUND AND NOT BUILD_APPS STREQUAL OFF )
|
||||||
add_subdirectory (Decimating/DecimaterGui)
|
add_subdirectory (Decimating/DecimaterGui)
|
||||||
add_subdirectory (QtViewer)
|
add_subdirectory (QtViewer)
|
||||||
add_subdirectory (Subdivider/SubdividerGui)
|
add_subdirectory (Subdivider/SubdividerGui)
|
||||||
else ()
|
else ()
|
||||||
|
if ( BUILD_APPS STREQUAL OFF )
|
||||||
|
message ("Building Apps disabled by user.")
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (NOT QT4_FOUND)
|
if (NOT QT4_FOUND)
|
||||||
message ("QT 4 not found! Skipping some apps.")
|
message ("QT 4 not found! Skipping some apps.")
|
||||||
endif ()
|
endif ()
|
||||||
@@ -34,4 +38,4 @@ else ()
|
|||||||
if (NOT GLUT_FOUND)
|
if (NOT GLUT_FOUND)
|
||||||
message ("GLUT not found! Skipping some apps.")
|
message ("GLUT not found! Skipping some apps.")
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|||||||
Reference in New Issue
Block a user