diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-16 16:40:33 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-20 09:12:47 +0200 |
commit | 27f74c25de086852f71b776dda05abd8b3d8385a (patch) | |
tree | 7d8b106af6cd8d78e88bfb4b5ae6334caa1c09b3 /examples/bluetooth/heartrate-game | |
parent | 5632f8990a7559a3161852d65a91841d26291a92 (diff) |
CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661
Change-Id: Ib6722991251673c6531667cb6b318b0531df5cda
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game')
-rw-r--r-- | examples/bluetooth/heartrate-game/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/bluetooth/heartrate-game/CMakeLists.txt b/examples/bluetooth/heartrate-game/CMakeLists.txt index 8d82dfb1..d782bfef 100644 --- a/examples/bluetooth/heartrate-game/CMakeLists.txt +++ b/examples/bluetooth/heartrate-game/CMakeLists.txt @@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/bluetooth/heartrate-game") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/bluetooth/heartrate-game") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) @@ -17,7 +21,7 @@ find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Bluetooth) -add_qt_gui_executable(heartrate-game +qt_add_executable(heartrate-game bluetoothbaseclass.cpp bluetoothbaseclass.h connectionhandler.cpp connectionhandler.h devicefinder.cpp devicefinder.h |