diff options
author | Tim E. Real <termtech@rogers.com> | 2010-10-23 01:03:47 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-10-23 01:03:47 +0000 |
commit | a568bd216d342740b78279b2a3797d2e2fbe0ab4 (patch) | |
tree | 5380405ed9f658addd7f5503a2b4dde618315238 /muse2/cmake/Summary.cmake | |
parent | 671954422341c5c9430251eae9c77d910e81ef77 (diff) |
See ChangeLog
Diffstat (limited to 'muse2/cmake/Summary.cmake')
-rw-r--r-- | muse2/cmake/Summary.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/muse2/cmake/Summary.cmake b/muse2/cmake/Summary.cmake new file mode 100644 index 00000000..2dc94eb2 --- /dev/null +++ b/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) |