Skip to content

Commit

Permalink
Fix QML module build
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Dec 30, 2023
1 parent f8bd19f commit 9ddc3d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ if(QTACCOUNTSSERVICE_WITH_EXAMPLES)
add_subdirectory(examples/useraccount)
add_subdirectory(examples/userslistview)
endif()
if(TARGET Liri::Qt6AccountsService)
add_subdirectory(src/imports/accountsservice)
endif()
if(BUILD_TESTING)
add_subdirectory(tests/auto/api)
endif()
10 changes: 10 additions & 0 deletions src/accountsservice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ liri_add_module(Qt6AccountsService
)

liri_finalize_module(Qt6AccountsService)

if(TARGET Qt6::Qml)
ecm_add_qml_module(Qt6AccountsService
URI QtAccountsService
VERSION 2.0
GENERATE_PLUGIN_SOURCE
)

ecm_finalize_qml_module(Qt6AccountsService)
endif()
18 changes: 0 additions & 18 deletions src/imports/accountsservice/CMakeLists.txt

This file was deleted.

0 comments on commit 9ddc3d4

Please sign in to comment.