build files for a Qt platform driver for the ENTTEC DMX USB Pro
This commit is contained in:
parent
0c36bd34b7
commit
76a7078cef
|
@ -6,3 +6,6 @@ set(CMAKE_AUTORCC ON)
|
||||||
|
|
||||||
# network and gui interface for an sACN node
|
# network and gui interface for an sACN node
|
||||||
add_subdirectory(sacn)
|
add_subdirectory(sacn)
|
||||||
|
|
||||||
|
# Enttec DMX-USB-Pro serial driver
|
||||||
|
add_subdirectory(dmxwidget)
|
||||||
|
|
23
platform/qt/dmxwidget/CMakeLists.txt
Normal file
23
platform/qt/dmxwidget/CMakeLists.txt
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
project(${PROJECT_NAME}-dmxwidget VERSION ${PROJECT_VERSION})
|
||||||
|
|
||||||
|
find_package(Qt6 REQUIRED COMPONENTS SerialPort)
|
||||||
|
|
||||||
|
add_library(${PROJECT_NAME} SHARED)
|
||||||
|
add_library(LCP::Qt::DmxWidget ALIAS ${PROJECT_NAME})
|
||||||
|
|
||||||
|
target_sources(${PROJECT_NAME}
|
||||||
|
PUBLIC
|
||||||
|
dmxwidget.h
|
||||||
|
PRIVATE
|
||||||
|
dmxwidget.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
PUBLIC
|
||||||
|
ENTTEC::Pro
|
||||||
|
PRIVATE
|
||||||
|
Qt::SerialPort
|
||||||
|
)
|
||||||
|
|
||||||
|
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
|
||||||
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
30
platform/qt/dmxwidget/dmxwidget.cpp
Normal file
30
platform/qt/dmxwidget/dmxwidget.cpp
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
dmxwidget.cpp
|
||||||
|
|
||||||
|
Copyright (c) 2023 Kevin Matz (kevin.matz@gmail.com)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
*/
|
||||||
|
#include "dmxwidget.h"
|
||||||
|
|
||||||
|
DmxWidget::DmxWidget(QObject *parent)
|
||||||
|
: QObject{parent}
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
39
platform/qt/dmxwidget/dmxwidget.h
Normal file
39
platform/qt/dmxwidget/dmxwidget.h
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
qwidget.h
|
||||||
|
|
||||||
|
Copyright (c) 2023 Kevin Matz (kevin.matz@gmail.com)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <widget.h>
|
||||||
|
|
||||||
|
class DmxWidget
|
||||||
|
: public QObject
|
||||||
|
, public ENTTEC::Widget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit DmxWidget(QObject *parent = nullptr);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user