summaryrefslogtreecommitdiffstats
path: root/accounts/generic/CMakeLists.txt
blob: 5d485a67fa99c107ba724338bf3767aff80c2f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
project(kube-accounts-generic)

find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core Quick Qml)

find_package(Sink CONFIG REQUIRED)
find_package(KAsync CONFIG REQUIRED)

set(SRCS
    settings.cpp
    accountplugin.cpp
)

add_library(genericaccountplugin SHARED ${SRCS})
target_link_libraries(genericaccountplugin
    sink
    frameworkplugin
    Qt5::Core
    Qt5::Quick
    Qt5::Qml
)

install(TARGETS genericaccountplugin DESTINATION ${QML_INSTALL_DIR}/org/kube/accounts/generic)
install(FILES metadata.json DESTINATION ${QML_INSTALL_DIR}/org/kube/accounts/generic)
install_qml_account(generic)