blob: 223cb2691d388d40de5efef9dd2bb6744b0bcba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#####################################################################
## bttestui Binary:
#####################################################################
cmake_minimum_required(VERSION 3.16...3.21)
# Resources:
set(bttest_resource_files
"Button.qml"
"main.qml"
)
if(NOT TARGET Qt::Bluetooth)
# for standalone build
project(bttestui LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
find_package(Qt6 REQUIRED COMPONENTS Bluetooth Core Gui Quick)
qt_add_executable(bttestui
btlocaldevice.cpp btlocaldevice.h
main.cpp
)
target_link_libraries(bttestui PUBLIC
Qt::Bluetooth
Qt::Gui
Qt::Quick
)
qt_add_resources(bttestui "bttest"
PREFIX
"/"
FILES
${bttest_resource_files}
)
else()
# in-tree build
qt_internal_add_executable(bttestui
GUI
SOURCES
btlocaldevice.cpp btlocaldevice.h
main.cpp
PUBLIC_LIBRARIES
Qt::Bluetooth
Qt::Gui
Qt::Quick
)
qt_internal_add_resource(bttestui "bttest"
PREFIX
"/"
FILES
${bttest_resource_files}
)
endif()
#### Keys ignored in scope 1:.:.:bttestui.pro:<TRUE>:
# OTHER_FILES = "main.qml" "Button.qml"
# TEMPLATE = "app"
## Scopes:
#####################################################################
|