[packagechooser] Look for AppStream libs

This commit is contained in:
Adriaan de Groot 2019-08-19 06:45:05 -04:00
parent 52af9dbaad
commit 5b4152133d

View File

@ -9,7 +9,19 @@ if ( Qt5Xml_FOUND )
add_definitions( -DHAVE_XML )
list( APPEND _extra_libraries Qt5::Xml )
endif()
find_package(AppStreamQt)
set_package_properties(
AppStreamQt PROPERTIES
DESCRIPTION "Support for AppStream (cache) data"
URL "https://github.com/ximion/appstream"
PURPOSE "AppStream provides package data"
TYPE OPTIONAL
)
if ( AppStreamQt_FOUND )
add_definitions( -DHAVE_APPSTREAM )
list( APPEND _extra_libraries AppStreamQt )
endif()
calamares_add_plugin( packagechooser
TYPE viewmodule