2009-06-04 10:00:51 +00:00
|
|
|
include (ACGCommon)
|
|
|
|
|
|
|
|
|
|
include_directories (
|
|
|
|
|
../../..
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${GLUT_INCLUDE_DIR}
|
2009-09-02 12:49:16 +00:00
|
|
|
${QT_INCLUDE_DIR}
|
2009-06-04 10:00:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# source code directories
|
|
|
|
|
set (directories
|
|
|
|
|
.
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# collect all header and source files
|
|
|
|
|
acg_append_files (headers "*.hh" ${directories})
|
|
|
|
|
acg_append_files (sources "*.cc" ${directories})
|
|
|
|
|
|
|
|
|
|
# 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 (QtViewer WIN32 ${sources} ${headers})
|
2009-06-04 10:00:51 +00:00
|
|
|
# link to qtmain library to get WinMain function for a non terminal app
|
2018-12-14 11:51:28 +01:00
|
|
|
target_link_libraries (QtViewer ${QT_QTMAIN_LIBRARY})
|
2009-06-04 10:00:51 +00:00
|
|
|
else ()
|
2018-12-14 11:14:13 +01:00
|
|
|
acg_add_executable (QtViewer ${sources} ${headers})
|
2009-06-04 10:00:51 +00:00
|
|
|
endif ()
|
|
|
|
|
|
2018-12-14 11:14:13 +01:00
|
|
|
target_link_libraries (QtViewer
|
2009-06-04 10:00:51 +00:00
|
|
|
OpenMeshCore
|
|
|
|
|
OpenMeshTools
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
|
${GLUT_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|