Skip to content

Commit e896861

Browse files
committed
Cleanup CMake builds
1 parent d2224e7 commit e896861

8 files changed

+55
-3
lines changed

.cmake.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
set(QT_REPO_MODULE_VERSION "6.0.3")
1+
set(QT_REPO_MODULE_VERSION "6.4.2")

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
cmake_minimum_required(VERSION 3.16)
44

5+
# Allow to build with a different Qt version
6+
set(QT_NO_PACKAGE_VERSION_CHECK TRUE)
7+
58
include(.cmake.conf)
69
project(QtUsb
7-
VERSION 6.8.0 # FIXME: this needs to match host's Qt version
10+
VERSION 6.0.0 # We need 6.x
811
DESCRIPTION "A cross-platform USB Module for Qt."
912
HOMEPAGE_URL "https://github.com/fpoussin/QtUsb"
1013
LANGUAGES CXX C

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Check the [releases](https://github.com/fpoussin/QtUsb/releases) page or [appvey
2929
## Build
3030

3131
**Unix**
32-
You need libusb-1.0-0-dev, libhidapi-dev and pkg-config packages installed
32+
You need `libusb-1.0-0-dev`, `libhidapi-dev` and `pkg-config` packages installed
33+
If using system packages on Ubuntu, you'll need `qt6-base-private-dev` as well.
3334
```shell
3435
mkdir build && cd build
3536
cmake ..

src/usb/qhiddevice_p.h

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#ifndef QHIDDEVICE_P_H
22
#define QHIDDEVICE_P_H
33

4+
//
5+
// W A R N I N G
6+
// -------------
7+
//
8+
// This file is not part of the Qt API. It exists purely as an
9+
// implementation detail. This header file may change from version to
10+
// version without notice, or even be removed.
11+
//
12+
// We mean it.
13+
//
14+
415
#include "qhiddevice.h"
516
#include <private/qobject_p.h>
617
#include <hidapi.h>

src/usb/qusb_p.h

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#ifndef Q_USB_P_H
22
#define Q_USB_P_H
33

4+
//
5+
// W A R N I N G
6+
// -------------
7+
//
8+
// This file is not part of the Qt API. It exists purely as an
9+
// implementation detail. This header file may change from version to
10+
// version without notice, or even be removed.
11+
//
12+
// We mean it.
13+
//
14+
415
#include "qusb.h"
516
#include <private/qobject_p.h>
617
#include <QTimer>

src/usb/qusbdevice_p.h

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#ifndef QUSBDEVICE_P_H
22
#define QUSBDEVICE_P_H
33

4+
//
5+
// W A R N I N G
6+
// -------------
7+
//
8+
// This file is not part of the Qt API. It exists purely as an
9+
// implementation detail. This header file may change from version to
10+
// version without notice, or even be removed.
11+
//
12+
// We mean it.
13+
//
14+
415
#include "qusbdevice.h"
516
#include <private/qobject_p.h>
617
#include <QThread>

src/usb/qusbendpoint.h

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <QIODevice>
77
#include <QObject>
88

9+
QT_BEGIN_NAMESPACE
10+
911
class QUsbEndpointPrivate;
1012

1113
class Q_USB_EXPORT QUsbEndpoint : public QIODevice
@@ -112,4 +114,6 @@ public Q_SLOTS:
112114
const quint8 m_ep;
113115
};
114116

117+
QT_END_NAMESPACE
118+
115119
#endif // QUSBENDPOINT_H

src/usb/qusbendpoint_p.h

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#ifndef QUSBENDPOINT_P_H
22
#define QUSBENDPOINT_P_H
33

4+
//
5+
// W A R N I N G
6+
// -------------
7+
//
8+
// This file is not part of the Qt API. It exists purely as an
9+
// implementation detail. This header file may change from version to
10+
// version without notice, or even be removed.
11+
//
12+
// We mean it.
13+
//
14+
415
#include "qusbendpoint.h"
516
#include <QMutexLocker>
617
#include <private/qiodevice_p.h>

0 commit comments

Comments
 (0)