CMakeLists.txt 1.08 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
17
if (QT4_FOUND AND OPENGL_FOUND AND GLEW_FOUND AND GLUT_FOUND AND NOT BUILD_APPS STREQUAL OFF  )
Jan Möbius's avatar
Jan Möbius committed
18
19
20
  add_subdirectory (Decimating/DecimaterGui)
  add_subdirectory (QtViewer)
  add_subdirectory (Subdivider/SubdividerGui)
Ellen Dekkers's avatar
Ellen Dekkers committed
21
  add_subdirectory (ProgViewer)
Jan Möbius's avatar
Jan Möbius committed
22
else ()
23
24
25
26
  if ( BUILD_APPS STREQUAL OFF )
    message ("Building Apps disabled by user.")
  endif ()

Jan Möbius's avatar
Jan Möbius committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  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 ()
42
endif ()