From: Elias Oenal Date: Sun, 2 Nov 2014 19:21:34 +0000 (+0100) Subject: Linking QtSvg. This closes bug #369 X-Git-Tag: pulseview-0.3.0~526 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=726ea66712afefafd96b4f08667fa97ab741c343;p=pulseview.git Linking QtSvg. This closes bug #369 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 31926adf..8ee1d57a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,13 +81,15 @@ if(Qt5Core_FOUND) message("-- Using Qt5") find_package(Qt5Widgets REQUIRED) find_package(Qt5Gui REQUIRED) + find_package(Qt5Svg REQUIRED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") set(QT_INCLUDE_DIRS ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}) - set(QT_LIBRARIES Qt5::Gui Qt5::Widgets) + set(QT_LIBRARIES Qt5::Gui Qt5::Widgets Qt5::Svg) add_definitions(${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS}) else() find_program(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac) find_package(Qt4 REQUIRED) + set(QT_USE_QTSVG TRUE) endif() find_package(Boost 1.42 COMPONENTS filesystem system REQUIRED)