qt5 apps support

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1103 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2014-07-17 12:57:04 +00:00
parent 71fd144089
commit 3ff415a5c2
9 changed files with 248 additions and 11 deletions

View File

@@ -40,7 +40,11 @@ list (APPEND headers "../QtViewer/MeshViewerWidgetT.hh")
acg_drop_templates (sources)
# genereate uic and moc targets
acg_qt4_automoc (moc_targets ${headers})
if(QT5_FOUND)
acg_qt5_automoc (moc_targets ${headers})
else()
acg_qt4_automoc (moc_targets ${headers})
endif()
if (WIN32)
acg_add_executable (${targetName} WIN32 ${sources} ${headers} ${moc_targets})