From e40fc849149dd97c248866a4a1d026dda5e57b62 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Mon, 7 Mar 2011 19:01:11 +0000 Subject: clean3 --- attic/muse2-oom/muse2/cmake/Summary.cmake | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 attic/muse2-oom/muse2/cmake/Summary.cmake (limited to 'attic/muse2-oom/muse2/cmake/Summary.cmake') diff --git a/attic/muse2-oom/muse2/cmake/Summary.cmake b/attic/muse2-oom/muse2/cmake/Summary.cmake new file mode 100644 index 00000000..2dc94eb2 --- /dev/null +++ b/attic/muse2-oom/muse2/cmake/Summary.cmake @@ -0,0 +1,28 @@ +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}) + message("-----------------------------------------------") + 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) -- cgit v1.2.3