diff --git a/examples/bluetooth/CMakeLists.txt b/examples/bluetooth/CMakeLists.txt index 276a258d..3034f659 100644 --- a/examples/bluetooth/CMakeLists.txt +++ b/examples/bluetooth/CMakeLists.txt @@ -1,10 +1,10 @@ -add_subdirectory(heartrate-server) +qt_internal_add_example(heartrate-server) if(TARGET Qt::Widgets) - add_subdirectory(btchat) - add_subdirectory(btscanner) + qt_internal_add_example(btchat) + qt_internal_add_example(btscanner) endif() if(TARGET Qt::Quick) - add_subdirectory(pingpong) - add_subdirectory(lowenergyscanner) - add_subdirectory(heartrate-game) + qt_internal_add_example(pingpong) + qt_internal_add_example(lowenergyscanner) + qt_internal_add_example(heartrate-game) endif() diff --git a/examples/nfc/CMakeLists.txt b/examples/nfc/CMakeLists.txt index f8fd3ffb..46b9a082 100644 --- a/examples/nfc/CMakeLists.txt +++ b/examples/nfc/CMakeLists.txt @@ -1,4 +1,4 @@ if(TARGET Qt::Widgets) - add_subdirectory(annotatedurl) - add_subdirectory(ndefeditor) + qt_internal_add_example(annotatedurl) + qt_internal_add_example(ndefeditor) endif()