calamares/src/modules/packagechooser/CMakeLists.txt
Adriaan de Groot 735d5d2683 [packagechooser] Add stub of module
Package chooser is a **low density** package selector -- unlike
netinstall which offers a high density tree view -- for picking
zero, one, or more items from a small collection of packages.

This can be used, e.g., for "pick exactly one desktop environment",
"pick zero or more text editors" which can then be installed
by another module. The UI is big and shiny (rather than netinstall's
text-based tree view) and isn't suitable for more than a dozen or
so items.
2019-08-02 10:57:12 +02:00

28 lines
610 B
CMake

find_package( Qt5 COMPONENTS Core Gui Widgets REQUIRED )
calamares_add_plugin( packagechooser
TYPE viewmodule
EXPORT_MACRO PLUGINDLLEXPORT_PRO
SOURCES
PackageChooserPage.cpp
PackageChooserViewStep.cpp
UI
page_package.ui
LINK_PRIVATE_LIBRARIES
calamaresui
SHARED_LIB
)
if( ECM_FOUND AND BUILD_TESTING )
ecm_add_test(
Tests.cpp
TEST_NAME
packagechooosertest
LINK_LIBRARIES
${CALAMARES_LIBRARIES}
Qt5::Core
Qt5::Test
)
calamares_automoc( packagechooosertest)
endif()