@ -66,17 +66,18 @@ function( calamares_add_plugin )
message ( " ${Green}TYPE:${ColorReset} ${PLUGIN_TYPE}" )
message ( " ${Green}LINK_LIBRARIES:${ColorReset} ${PLUGIN_LINK_LIBRARIES}" )
message ( " ${Green}LINK_PRIVATE_LIBRARIES:${ColorReset} ${PLUGIN_LINK_PRIVATE_LIBRARIES}" )
# message ( " ${Green}SOURCES:${ColorReset} ${PLUGIN_SOURCES}" )
# message ( " ${Green}UI:${ColorReset} ${PLUGIN_UI}" )
# message ( " ${Green}EXPORT_MACRO:${ColorReset} ${PLUGIN_EXPORT_MACRO}" )
# message ( " ${Green}NO_INSTALL:${ColorReset} ${PLUGIN_NO_INSTALL}" )
message ( " ${Green}PLUGIN_DESTINATION:${ColorReset} ${PLUGIN_DESTINATION}" )
if ( PLUGIN_CONFIG_FILES )
set ( _destination "(unknown)" )
if ( INSTALL_CONFIG AND NOT PLUGIN_NO_INSTALL )
message ( " ${Green}CONFIGURATION_FILES:${ColorReset} ${PLUGIN_CONFIG_FILES} => ${PLUGIN_DATA_DESTINATION}" )
set ( _destination "${PLUGIN_DATA_DESTINATION}" )
elseif ( NOT PLUGIN_NO_INSTALL )
# N o t I N S T A L L _ C O N F I G
set ( _destination "[Build directory only]" )
else ( )
message ( " ${Green}CONFIGURATION_FILES:${ColorReset} ${PLUGIN_CONFIG_FILES} => [Skipping installation]" )
set( _destination " [Skipping installation]" )
endif ( )
message ( " ${Green}CONFIGURATION_FILES:${ColorReset} ${PLUGIN_CONFIG_FILES} => ${_destination}" )
endif ( )
if ( PLUGIN_RESOURCES )
message ( " ${Green}RESOURCES:${ColorReset} ${PLUGIN_RESOURCES}" )
@ -147,12 +148,13 @@ function( calamares_add_plugin )
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } / ${ PLUGIN_DESC_FILE }
D E S T I N A T I O N $ { P L U G I N _ D E S T I N A T I O N } )
if ( INSTALL_CONFIG )
foreach ( PLUGIN_CONFIG_FILE ${ PLUGIN_CONFIG_FILES } )
configure_file ( ${ PLUGIN_CONFIG_FILE } ${ PLUGIN_CONFIG_FILE } COPYONLY )
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } / ${ PLUGIN_CONFIG_FILE }
D E S T I N A T I O N $ { P L U G I N _ D A T A _ D E S T I N A T I O N } )
endforeach ( )
endif ( )
foreach ( PLUGIN_CONFIG_FILE ${ PLUGIN_CONFIG_FILES } )
configure_file ( ${ PLUGIN_CONFIG_FILE } ${ PLUGIN_CONFIG_FILE } COPYONLY )
if ( INSTALL_CONFIG )
install (
F I L E S $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { P L U G I N _ C O N F I G _ F I L E }
D E S T I N A T I O N $ { P L U G I N _ D A T A _ D E S T I N A T I O N } )
endif ( )
endforeach ( )
endif ( )
endfunction ( )