find_package(QmlPlugins)

find_package(Qt5Quick REQUIRED)

include_directories(
  "${CMAKE_SOURCE_DIR}/src/connectivity-api/connectivity-qt"
)

set(CONNECTIVITY_QML_UBUNTU_COMPAT_SRC
    plugin.cpp
)

add_library(connectivity-qml-ubuntu-compat SHARED
  ${CONNECTIVITY_QML_UBUNTU_COMPAT_SRC}
)
target_link_libraries(
  connectivity-qml-ubuntu-compat
  ${CONNECTIVITY_QT_LIB_TARGET}
)


target_link_libraries(connectivity-qml-ubuntu-compat
  Qt5::Qml
)


add_qmlplugin(
  Ubuntu.Connectivity
  1.0
  Ubuntu/Connectivity
  TARGET_PREFIX Connectivity
  TARGETS connectivity-qml-ubuntu-compat
)
