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/lowenergyscanner | |
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/lowenergyscanner')
-rw-r--r-- | examples/bluetooth/lowenergyscanner/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/bluetooth/lowenergyscanner/CMakeLists.txt b/examples/bluetooth/lowenergyscanner/CMakeLists.txt index 6c1ddd7a..2bb13bf5 100644 --- a/examples/bluetooth/lowenergyscanner/CMakeLists.txt +++ b/examples/bluetooth/lowenergyscanner/CMakeLists.txt @@ -9,14 +9,18 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/bluetooth/lowenergyscanner") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/bluetooth/lowenergyscanner") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Bluetooth) -add_qt_gui_executable(lowenergyscanner +qt_add_executable(lowenergyscanner characteristicinfo.cpp characteristicinfo.h device.cpp device.h deviceinfo.cpp deviceinfo.h |