Windows: Build fix

This commit is contained in:
Vicki Pfau 2018-03-22 20:38:30 -07:00
parent fac10eae96
commit 7a53c35123
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ if(Qt5Multimedia_FOUND)
VideoDumper.cpp) VideoDumper.cpp)
if (WIN32 AND QT_STATIC) if (WIN32 AND QT_STATIC)
list(APPEND QT_LIBRARIES Qt5::QWindowsAudioPlugin Qt5::DSServicePlugin list(APPEND QT_LIBRARIES Qt5::QWindowsAudioPlugin Qt5::DSServicePlugin
strmiids winmm mfuuid mfplat mf ksguid dxva2 evr d3d9) strmiids mfuuid mfplat mf ksguid dxva2 evr d3d9)
endif() endif()
list(APPEND QT_LIBRARIES Qt5::Multimedia) list(APPEND QT_LIBRARIES Qt5::Multimedia)
list(APPEND QT_DEFINES BUILD_QT_MULTIMEDIA) list(APPEND QT_DEFINES BUILD_QT_MULTIMEDIA)
@ -273,7 +273,7 @@ if(BUILD_GL OR BUILD_GLES2)
endif() endif()
if(WIN32 AND QT_STATIC) if(WIN32 AND QT_STATIC)
list(APPEND QT_LIBRARIES qwindows dwmapi imm32 uxtheme Qt5EventDispatcherSupport Qt5FontDatabaseSupport Qt5ThemeSupport) list(APPEND QT_LIBRARIES qwindows dwmapi imm32 uxtheme Qt5EventDispatcherSupport Qt5FontDatabaseSupport Qt5ThemeSupport)
set_target_properties(Qt5::Core PROPERTIES INTERFACE_LINK_LIBRARIES "qtpcre2;version;ws2_32") set_target_properties(Qt5::Core PROPERTIES INTERFACE_LINK_LIBRARIES "qtpcre2;version;winmm;ws2_32")
endif() endif()
target_link_libraries(${BINARY_NAME}-qt ${PLATFORM_LIBRARY} ${BINARY_NAME} ${QT_LIBRARIES}) target_link_libraries(${BINARY_NAME}-qt ${PLATFORM_LIBRARY} ${BINARY_NAME} ${QT_LIBRARIES})
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}" PARENT_SCOPE) set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}" PARENT_SCOPE)