Skip to content

Commit d2224e7

Browse files
committed
update README.md
1 parent 4793d83 commit d2224e7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: QMake Build Matrix
1+
name: CMake Build Matrix
22

33
on: [push]
44

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ Check the [releases](https://github.com/fpoussin/QtUsb/releases) page or [appvey
3232
You need libusb-1.0-0-dev, libhidapi-dev and pkg-config packages installed
3333
```shell
3434
mkdir build && cd build
35-
qmake ..
35+
cmake ..
3636
make install
3737
```
3838

3939
Alternatively build as static module (best for portability)
4040
```shell
4141
mkdir build && cd build
42-
qmake CONFIG+=qtusb-static ..
42+
cmake -DQTUSB_AS_STATIC_MODULE=ON ..
4343
make install
4444
```
4545

@@ -54,14 +54,14 @@ ie: build_msvc.bat 2017 x64 static C:\Qt\5.14.1\msvc2017_64
5454

5555
**Qt Creator**
5656
The module can also be built normally within QT creator regardless of the platform.
57-
All dependencies are built with qmake.
57+
All dependencies are built with cmake.
5858

5959
## Using
6060

6161
**Option 1: Using the module (static or dynamic)**
62-
You'll need to add the module to your project file:
62+
You'll need to add the module to into CMakeLists.txt:
6363
```
64-
qt += usb
64+
find_package(Qt6 REQUIRED COMPONENTS QtUsb)
6565
```
6666
Include headers:
6767
```
@@ -71,9 +71,9 @@ Include headers:
7171

7272
**Option 2: Importing the code in your project**
7373
This will tie your app to a specific Qt version as it uses private headers
74-
You need to include the pri file into your qmake file:
74+
You need to add the QtUsb subdirectoty into CMakeLists.txt:
7575
```
76-
include(QtUsb/src/usb/files.pri)
76+
add_subdirectory(QtUsb)
7777
```
7878
Include headers:
7979
```
@@ -89,5 +89,5 @@ Online documentation can be found [here](https://fpoussin.github.io/doxygen/qtus
8989

9090
## Downloads
9191

92-
[Ubuntu PPA](https://launchpad.net/~fpoussin/+archive/ubuntu/ppa)
92+
[Ubuntu PPA](https://launchpad.net/~fpoussin/+archive/ubuntu/ppa)
9393
Windows binaries are [in the releases section](https://github.com/fpoussin/QtUsb/releases).

0 commit comments

Comments
 (0)