X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=3859c9133b61e01ffb93599f684fd550470e6a48;hp=8302b4828cc3fff1cfaca42926ba0481c0c50996;hb=11a04e2a8ed47ed159b68cbe6f56aedd388e445f;hpb=fe15e0bc0503b8eecd503c1685031be3e4ef12cf diff --git a/CMakeLists.txt b/CMakeLists.txt index 8302b482..3859c913 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,6 +278,15 @@ else() list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES}) endif() +if(WIN32) + # On Windows we need to statically link the libqsvg imageformat + # plugin (and the QtSvg component) for SVG graphics/icons to work. + add_definitions(-DQT_STATICPLUGIN) + link_directories("${QT_PLUGINS_DIR}/imageformats") + list(APPEND PULSEVIEW_LINK_LIBS ${QT_QTSVG_LIBRARY}) + list(APPEND PULSEVIEW_LINK_LIBS "-lqsvg") +endif() + add_executable(${PROJECT_NAME} ${pulseview_SOURCES} ${pulseview_HEADERS_MOC}