Add Button.qml in the CMakeLists.txt :
Button.qml
CMakeLists.txt
qt_add_qml_module(bbb URI bbb VERSION 1.0 QML_FILES main.qml Button.qml )