2009-05-01 21:17:01 +00:00
|
|
|
include (ACGCommon)
|
|
|
|
|
|
|
|
|
|
# find needed packages
|
|
|
|
|
find_package (OpenGL)
|
|
|
|
|
find_package (GLUT)
|
|
|
|
|
find_package (GLEW)
|
|
|
|
|
|
|
|
|
|
acg_qt4 ()
|
|
|
|
|
|
2010-04-28 13:14:14 +00:00
|
|
|
add_subdirectory (Dualizer)
|
2009-05-01 21:17:01 +00:00
|
|
|
add_subdirectory (Decimating/commandlineDecimater)
|
|
|
|
|
add_subdirectory (Smoothing)
|
|
|
|
|
add_subdirectory (Subdivider/commandlineSubdivider)
|
|
|
|
|
add_subdirectory (Subdivider/commandlineAdaptiveSubdivider)
|
|
|
|
|
add_subdirectory (mconvert)
|
2010-03-01 17:22:22 +00:00
|
|
|
add_subdirectory (VDProgMesh/mkbalancedpm)
|
|
|
|
|
add_subdirectory (VDProgMesh/Analyzer)
|
2009-05-01 21:17:01 +00:00
|
|
|
|
|
|
|
|
# check for OpenGL, GLEW and GLUT as our required dependencies
|
2009-06-16 06:10:40 +00:00
|
|
|
if (QT4_FOUND AND OPENGL_FOUND AND GLEW_FOUND AND GLUT_FOUND AND NOT BUILD_APPS STREQUAL OFF )
|
2009-05-01 21:17:01 +00:00
|
|
|
add_subdirectory (Decimating/DecimaterGui)
|
|
|
|
|
add_subdirectory (QtViewer)
|
|
|
|
|
add_subdirectory (Subdivider/SubdividerGui)
|
2010-03-01 17:07:39 +00:00
|
|
|
add_subdirectory (ProgViewer)
|
2010-03-02 09:25:21 +00:00
|
|
|
add_subdirectory (VDProgMesh/Synthesizer)
|
2009-05-01 21:17:01 +00:00
|
|
|
else ()
|
2009-06-16 06:10:40 +00:00
|
|
|
if ( BUILD_APPS STREQUAL OFF )
|
|
|
|
|
message ("Building Apps disabled by user.")
|
|
|
|
|
endif ()
|
|
|
|
|
|
2009-05-01 21:17:01 +00:00
|
|
|
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 ()
|
2009-06-16 06:10:40 +00:00
|
|
|
endif ()
|