CMakeLists.txt 713 Bytes
Newer Older
Ellen Dekkers's avatar
Ellen Dekkers committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
include (ACGCommon)

include_directories (
  ../../..
  ${CMAKE_CURRENT_SOURCE_DIR}
)


# collect all header and source files
acg_append_files (headers "*.hh" .)
acg_append_files (sources "*.cc" .)

list (APPEND sources "../QtViewer/QGLViewerWidget.cc")

list (APPEND headers "../QtViewer/QGLViewerWidget.hh")
list (APPEND headers "../QtViewer/MeshViewerWidgetT.hh")
17
list (APPEND headers "../QtViewer/MeshViewerWidgetT_impl.hh")
Ellen Dekkers's avatar
Ellen Dekkers committed
18 19

if (WIN32)
20
  acg_add_executable( ProgViewer WIN32 ${sources} ${headers})
Ellen Dekkers's avatar
Ellen Dekkers committed
21
else ()
22
  acg_add_executable( ProgViewer ${sources} ${headers})
Ellen Dekkers's avatar
Ellen Dekkers committed
23 24
endif ()

25
target_link_libraries ( ProgViewer
Ellen Dekkers's avatar
Ellen Dekkers committed
26 27
  OpenMeshCore
  OpenMeshTools
Jan Möbius's avatar
Jan Möbius committed
28
  Qt5::OpenGL
Ellen Dekkers's avatar
Ellen Dekkers committed
29 30 31
  ${OPENGL_LIBRARIES}
)