mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
WIP.
This commit is contained in:
parent
7a0d188149
commit
eaa51ebe9d
9 changed files with 19 additions and 7 deletions
|
@ -1,13 +1,25 @@
|
||||||
set(TARGET_NAME auto-tester)
|
set(TARGET_NAME auto-tester)
|
||||||
|
|
||||||
setup_hifi_project(Widgets)
|
setup_hifi_project(Widgets)
|
||||||
|
link_hifi_libraries()
|
||||||
|
|
||||||
# grab the ui files in ui
|
# grab the implementation and header files from src dirs
|
||||||
file (GLOB_RECURSE QT_UI_FILES src/ui/*.ui)
|
file(GLOB_RECURSE INTERFACE_SRCS "src/*.cpp" "src/*.h")
|
||||||
|
GroupSources("src")
|
||||||
|
|
||||||
|
find_package(
|
||||||
|
Qt5 COMPONENTS
|
||||||
|
Gui Multimedia Network OpenGL Qml Quick Script Svg
|
||||||
|
${PLATFORM_QT_COMPONENTS}
|
||||||
|
WebChannel WebSockets
|
||||||
|
)
|
||||||
|
|
||||||
|
# grab the ui files in resources/ui
|
||||||
|
file (GLOB_RECURSE QT_UI_FILES ui/*.ui)
|
||||||
source_group("UI Files" FILES ${QT_UI_FILES})
|
source_group("UI Files" FILES ${QT_UI_FILES})
|
||||||
|
|
||||||
# have qt5 wrap them and generate the appropriate header files
|
# have qt5 wrap them and generate the appropriate header files
|
||||||
qt5_wrap_ui(QT_UI_HEADERS "${QT_UI_FILES}")
|
qt5_wrap_ui(QT_UI_HEADERS "${QT_UI_FILES}")
|
||||||
|
|
||||||
# add them to the interface source files
|
# add them to the interface source files
|
||||||
##set(INTERFACE_SRCS ${INTERFACE_SRCS} "${QT_UI_HEADERS}")
|
set(INTERFACE_SRCS ${INTERFACE_SRCS} "${QT_UI_HEADERS}" "${QT_RESOURCES}")
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include <QMessagebox>
|
#include <QMessagebox>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
|
||||||
#include "MismatchWindow.h"
|
#include "ui/MismatchWindow.h"
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include "autoTester.h"
|
#include "ui/autoTester.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#include "ui_MismatchWindow.h"
|
#include "ui_MismatchWindow.h"
|
||||||
|
|
||||||
#include "common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
class MismatchWindow : public QDialog, public Ui::MismatchWindow
|
class MismatchWindow : public QDialog, public Ui::MismatchWindow
|
||||||
{
|
{
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <QtWidgets/QMainWindow>
|
#include <QtWidgets/QMainWindow>
|
||||||
#include "ui_autoTester.h"
|
#include "ui_autoTester.h"
|
||||||
#include "Test.h"
|
#include "../Test.h"
|
||||||
|
|
||||||
class AutoTester : public QMainWindow
|
class AutoTester : public QMainWindow
|
||||||
{
|
{
|
Loading…
Reference in a new issue