qt_add_executable(mithra-oobe main.cpp)

qt_add_qml_module(mithra-oobe
    URI MithraOobe
    VERSION 1.0
    SOURCES
        src/oobecontrol.h src/oobecontrol.cpp
        ../shell/src/wifimanager.h ../shell/src/wifimanager.cpp
    QML_FILES
        Main.qml
)

qt_add_resources(mithra-oobe "oobefonts"
    PREFIX "/fonts"
    BASE ${CMAKE_SOURCE_DIR}/kit/fonts
    FILES ${CMAKE_SOURCE_DIR}/kit/fonts/Cabin.ttf)

target_include_directories(mithra-oobe PRIVATE src ../shell/src)
target_link_libraries(mithra-oobe PRIVATE Qt6::Quick Qt6::DBus mithrakitplugin)

install(TARGETS mithra-oobe RUNTIME DESTINATION bin)
