pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS})
set(CMAKE_AUTOMOC TRUE)
-set(CMAKE_AUTORCC TRUE)
find_package(Qt5 COMPONENTS Core Gui Widgets Svg REQUIRED)
pv/widgets/sweeptimingwidget.cpp
pv/widgets/timestampspinbox.cpp
pv/widgets/wellarray.cpp
- pulseview.qrc
)
# This list includes only QObject derived class headers.
pv/widgets/wellarray.hpp
)
+set(pulseview_RESOURCES
+ pulseview.qrc
+)
+
if(ENABLE_SIGNALS)
list(APPEND pulseview_SOURCES signalhandler.cpp)
list(APPEND pulseview_HEADERS signalhandler.hpp)
)
endif()
+qt5_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES})
+
#===============================================================================
#= Global Definitions
#-------------------------------------------------------------------------------
endif()
if(ANDROID)
- add_library(${PROJECT_NAME} SHARED ${pulseview_SOURCES})
+ add_library(${PROJECT_NAME} SHARED ${pulseview_SOURCES} ${pulseview_RESOURCES_RCC})
else()
- add_executable(${PROJECT_NAME} ${pulseview_SOURCES})
+ add_executable(${PROJECT_NAME} ${pulseview_SOURCES} ${pulseview_RESOURCES_RCC})
endif()
target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS})