Dennis:
OpenMesh cmake support git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@111 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
37
src/OpenMesh/Apps/CMakeLists.txt
Normal file
37
src/OpenMesh/Apps/CMakeLists.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
include (ACGCommon)
|
||||
|
||||
# find needed packages
|
||||
find_package (OpenGL)
|
||||
find_package (GLUT)
|
||||
find_package (GLEW)
|
||||
|
||||
acg_qt4 ()
|
||||
|
||||
add_subdirectory (Decimating/commandlineDecimater)
|
||||
add_subdirectory (Smoothing)
|
||||
add_subdirectory (Subdivider/commandlineSubdivider)
|
||||
add_subdirectory (Subdivider/commandlineAdaptiveSubdivider)
|
||||
add_subdirectory (mconvert)
|
||||
|
||||
# check for OpenGL, GLEW and GLUT as our required dependencies
|
||||
if (QT4_FOUND AND OPENGL_FOUND AND GLEW_FOUND AND GLUT_FOUND)
|
||||
add_subdirectory (Decimating/DecimaterGui)
|
||||
add_subdirectory (QtViewer)
|
||||
add_subdirectory (Subdivider/SubdividerGui)
|
||||
else ()
|
||||
if (NOT QT4_FOUND)
|
||||
message ("QT 4 not found! Skipping some apps.")
|
||||
endif ()
|
||||
|
||||
if (NOT OPENGL_FOUND)
|
||||
message ("OpengGL not found! Skipping some apps.")
|
||||
endif ()
|
||||
|
||||
if (NOT GLEW_FOUND)
|
||||
message ("GLEW not found! Skipping some apps.")
|
||||
endif ()
|
||||
|
||||
if (NOT GLUT_FOUND)
|
||||
message ("GLUT not found! Skipping some apps.")
|
||||
endif ()
|
||||
endif ()
|
||||
Reference in New Issue
Block a user