cmake_minimum_required(VERSION 2.6)
include(FindPkgConfig)
-project(sigrok-qt2)
+project(pulseview)
find_package(PkgConfig)
pkg_check_modules(PKGDEPS REQUIRED
set(VERSION 0.1.0)
-set(sigrok-qt2_SOURCES
+set(pulseview_SOURCES
about.cpp
datasnapshot.cpp
logicdata.cpp
sigview.cpp
)
-set(sigrok-qt2_HEADERS
+set(pulseview_HEADERS
about.h
mainwindow.h
samplingbar.h
sigview.h
)
-set(sigrok-qt2_FORMS
+set(pulseview_FORMS
about.ui
)
-set(sigrok-qt2_RESOURCES
- sigrok-qt2.qrc
+set(pulseview_RESOURCES
+ pulseview.qrc
)
-set(sigrok-qt2_TEST_SOURCES
+set(pulseview_TEST_SOURCES
test/logicdatasnapshot.cpp
test/test.cpp
datasnapshot.cpp
set(QT_USE_QTOPENGL TRUE)
-qt4_wrap_cpp(sigrok-qt2_HEADERS_MOC ${sigrok-qt2_HEADERS})
-qt4_wrap_ui(sigrok-qt2_FORMS_HEADERS ${sigrok-qt2_FORMS})
-qt4_add_resources(sigrok-qt2_RESOURCES_RCC ${sigrok-qt2_RESOURCES})
+qt4_wrap_cpp(pulseview_HEADERS_MOC ${pulseview_HEADERS})
+qt4_wrap_ui(pulseview_FORMS_HEADERS ${pulseview_FORMS})
+qt4_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES})
include(${QT_USE_FILE})
${PKGDEPS_LIBRARY_DIRS}
)
-add_executable(sigrok-qt2
- ${sigrok-qt2_SOURCES}
- ${sigrok-qt2_HEADERS_MOC}
- ${sigrok-qt2_FORMS_HEADERS}
- ${sigrok-qt2_RESOURCES_RCC}
+add_executable(pulseview
+ ${pulseview_SOURCES}
+ ${pulseview_HEADERS_MOC}
+ ${pulseview_FORMS_HEADERS}
+ ${pulseview_RESOURCES_RCC}
)
-target_link_libraries(sigrok-qt2
+target_link_libraries(pulseview
${Boost_LIBRARIES}
${PKGDEPS_LIBRARIES}
${QT_LIBRARIES}
add_definitions(-DBOOST_TEST_DYN_LINK)
-add_executable(sigrok-qt2-test
- ${sigrok-qt2_TEST_SOURCES}
+add_executable(pulseview-test
+ ${pulseview_TEST_SOURCES}
)
-target_link_libraries(sigrok-qt2-test
+target_link_libraries(pulseview-test
${Boost_LIBRARIES}
${PKGDEPS_LIBRARIES}
${QT_LIBRARIES}
)
enable_testing()
-add_test(test ${CMAKE_CURRENT_BINARY_DIR}/sigrok-qt2-test)
+add_test(test ${CMAKE_CURRENT_BINARY_DIR}/pulseview-test)
_status_bar = new QStatusBar(this);
setStatusBar(_status_bar);
- setWindowTitle(QApplication::translate("MainWindow", "sigrok-qt2", 0, QApplication::UnicodeUTF8));
+ setWindowTitle(QApplication::translate("MainWindow", "PulseView", 0,
+ QApplication::UnicodeUTF8));
+
_action_open->setText(QApplication::translate("MainWindow", "&Open...", 0, QApplication::UnicodeUTF8));
_action_view_zoom_in->setText(QApplication::translate("MainWindow", "Zoom &In", 0, QApplication::UnicodeUTF8));
_action_view_zoom_out->setText(QApplication::translate("MainWindow", "Zoom &Out", 0, QApplication::UnicodeUTF8));