2010-03-01 17:16:35 +00:00
|
|
|
include (ACGCommon)
|
|
|
|
|
|
|
|
|
|
include_directories (
|
|
|
|
|
../../..
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${GLUT_INCLUDE_DIR}
|
|
|
|
|
${QT_INCLUDE_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set (targetName ProgViewer)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# collect all header and source files
|
|
|
|
|
acg_append_files (headers "*.hh" .)
|
|
|
|
|
acg_append_files (sources "*.cc" .)
|
|
|
|
|
|
|
|
|
|
list (APPEND sources "../QtViewer/QGLViewerWidget.cc")
|
|
|
|
|
list (APPEND sources "../QtViewer/MeshViewerWidgetT.cc")
|
|
|
|
|
|
|
|
|
|
list (APPEND headers "../QtViewer/QGLViewerWidget.hh")
|
|
|
|
|
list (APPEND headers "../QtViewer/MeshViewerWidgetT.hh")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # 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
|
|
|
|
|
# ./ProgViewerWidget.cc
|
|
|
|
|
# )
|
|
|
|
|
|
|
|
|
|
# remove template cc files from source file list
|
|
|
|
|
acg_drop_templates (sources)
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
2018-12-14 11:14:13 +01:00
|
|
|
acg_add_executable (${targetName} WIN32 ${sources} ${headers})
|
2010-03-01 17:16:35 +00:00
|
|
|
# link to qtmain library to get WinMain function for a non terminal app
|
|
|
|
|
target_link_libraries (${targetName} ${QT_QTMAIN_LIBRARY})
|
|
|
|
|
else ()
|
2018-12-14 11:14:13 +01:00
|
|
|
acg_add_executable (${targetName} ${sources} ${headers})
|
2010-03-01 17:16:35 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
target_link_libraries (${targetName}
|
|
|
|
|
OpenMeshCore
|
|
|
|
|
OpenMeshTools
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
|
${GLUT_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|