CMakeLists.txt 967 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4 5 6
include (ACGCommon)

include_directories (
  ../../../..
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${GLUT_INCLUDE_DIR}
Jan Möbius's avatar
Jan Möbius committed
7
  ${QT_INCLUDE_DIR}
Jan Möbius's avatar
Jan Möbius committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
)

# 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
  ../SubdivideWidget.cc
  ../qtsubdivider.cc
)

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

if (WIN32)
30
  acg_add_executable (SubdividerGui WIN32 ${sources} ${headers})
Jan Möbius's avatar
Jan Möbius committed
31
  # link to qtmain library to get WinMain function for a non terminal app
32
  target_link_libraries (SubdividerGui ${QT_QTMAIN_LIBRARY})
Jan Möbius's avatar
Jan Möbius committed
33
else ()
34
  acg_add_executable (SubdividerGui ${sources} ${headers})
Jan Möbius's avatar
Jan Möbius committed
35 36
endif ()

37
target_link_libraries (SubdividerGui
Jan Möbius's avatar
Jan Möbius committed
38 39 40 41 42 43 44
  OpenMeshCore
  OpenMeshTools
  ${QT_LIBRARIES}
  ${OPENGL_LIBRARIES}
  ${GLUT_LIBRARIES}
)