CMakeLists.txt 772 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
include (ACGCommon)

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

# source code directories
set (directories 
  ../../QtViewer
  ../
)

# collect all header and source files
acg_append_files (headers "*.hh" ${directories})

set (sources
  ../../QtViewer/QGLViewerWidget.cc
  ../../QtViewer/MeshViewerWidgetT.cc
  ../DecimaterViewerWidget.cc
  ../decimaterviewer.cc
)

# remove template cc files from source file list
acg_drop_templates (sources)

if (WIN32)
29
  acg_add_executable (DecimaterGui WIN32 ${sources} ${headers})
30
else ()
31
  acg_add_executable (DecimaterGui ${sources} ${headers} ) 
32 33
endif ()

34
target_link_libraries (DecimaterGui
35 36
  OpenMeshCore
  OpenMeshTools
Jan Möbius's avatar
Jan Möbius committed
37
  Qt5::OpenGL
38 39 40 41
  ${OPENGL_LIBRARIES}
  ${GLUT_LIBRARIES}
)