]> sigrok.org Git - pulseview.git/blobdiff - CMakeLists.txt
Replace View ownership of traces with RowItemOwner
[pulseview.git] / CMakeLists.txt
index 4af1f67bdaed73fee301c85b3ed5af3758434652..4ae482e65771bbcce25a8026a2816a91c783c02c 100644 (file)
@@ -88,8 +88,7 @@ if(Qt5Core_FOUND)
        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)
+       find_package(Qt4 REQUIRED QtCore QtGui QtSvg)
 endif()
 
 find_package(Boost 1.42 COMPONENTS filesystem system REQUIRED)
@@ -163,6 +162,8 @@ set(pulseview_SOURCES
        pv/view/header.cpp
        pv/view/marginwidget.cpp
        pv/view/logicsignal.cpp
+       pv/view/rowitem.cpp
+       pv/view/rowitemowner.cpp
        pv/view/ruler.cpp
        pv/view/selectableitem.cpp
        pv/view/signal.cpp
@@ -340,8 +341,8 @@ if(WIN32)
        # 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")
+       list(APPEND PULSEVIEW_LINK_LIBS ${QT_QTSVG_LIBRARY})
 endif()
 
 if(ANDROID)