summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/cmake/Summary.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'attic/muse2-oom/muse2/cmake/Summary.cmake')
-rw-r--r--attic/muse2-oom/muse2/cmake/Summary.cmake28
1 files changed, 28 insertions, 0 deletions
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)