Clementine-audio-player-Mac.../cmake/Summary.cmake

28 lines
728 B
CMake
Raw Normal View History

set(summary_willbuild "")
set(summary_willnotbuild "")
macro(summary_add name test)
if (${test})
list(APPEND summary_willbuild ${name})
else (${test})
list(APPEND summary_willnotbuild "${name}")
endif (${test})
endmacro(summary_add)
macro(summary_show_part variable title)
list(LENGTH ${variable} _len)
if (_len)
message("")
message(${title})
foreach (_item ${${variable}})
message(" ${_item}")
endforeach (_item)
endif (_len)
endmacro(summary_show_part)
macro(summary_show)
summary_show_part(summary_willbuild "The following components will be built:")
summary_show_part(summary_willnotbuild "The following components WILL NOT be built:")
message("")
endmacro(summary_show)