Fixed linker problems and added version specific qt packages

This commit is contained in:
Johannes Lenzen
2021-04-26 11:56:56 +02:00
parent 46c0ab1242
commit 7cbe7f9085
7 changed files with 33 additions and 1 deletions

View File

@@ -29,6 +29,12 @@ target_link_libraries ( ProgViewer
OpenMeshCore
OpenMeshTools
${QT_TARGET}::OpenGL
${QT_TARGET}::Widgets
${QT_TARGET}::Gui
${OPENGL_LIBRARIES}
)
if (QT_VERSION_MAJOR GREATER 5)
target_link_libraries (ProgViewer ${QT_TARGET}::OpenGLWidgets)
endif()