You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
746 B
26 lines
746 B
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
|
|
|
set( CMAKE_CXX_STANDARD 17 )
|
|
set( CMAKE_CXX_STANDARD_REQUIRED ON )
|
|
|
|
set( CALAMARES_VERSION_REQUIRED 3.3.0 )
|
|
find_package(Calamares ${CALAMARES_VERSION_REQUIRED} NO_CMAKE_PACKAGE_REGISTRY)
|
|
if (NOT TARGET Calamares::calamares OR NOT TARGET Calamares::calamaresui)
|
|
find_package(Calamares ${CALAMARES_VERSION_REQUIRED} REQUIRED)
|
|
endif()
|
|
|
|
message(STATUS "Found Calamares version ${Calamares_VERSION}")
|
|
message(STATUS " libraries ${Calamares_LIB_DIRS}")
|
|
message(STATUS "")
|
|
|
|
calamares_add_plugin( pkgselect
|
|
TYPE viewmodule
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
SOURCES
|
|
PackageSelectViewStep.cpp
|
|
PackageSelectJob.cpp
|
|
RESOURCES
|
|
pkgselect.qrc
|
|
SHARED_LIB
|
|
)
|