aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/Logo
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Utils/Logo')
-rw-r--r--Source/Utils/Logo/CMakeLists.txt4
-rw-r--r--Source/Utils/Logo/GetLogo.H19
-rw-r--r--Source/Utils/Logo/GetLogo.cpp15
-rw-r--r--Source/Utils/Logo/Make.package3
4 files changed, 41 insertions, 0 deletions
diff --git a/Source/Utils/Logo/CMakeLists.txt b/Source/Utils/Logo/CMakeLists.txt
new file mode 100644
index 000000000..62b5371ee
--- /dev/null
+++ b/Source/Utils/Logo/CMakeLists.txt
@@ -0,0 +1,4 @@
+target_sources(WarpX
+ PRIVATE
+ GetLogo.cpp
+)
diff --git a/Source/Utils/Logo/GetLogo.H b/Source/Utils/Logo/GetLogo.H
new file mode 100644
index 000000000..70a3e38ff
--- /dev/null
+++ b/Source/Utils/Logo/GetLogo.H
@@ -0,0 +1,19 @@
+#ifndef WARPX_GET_LOGO_H_
+#define WARPX_GET_LOGO_H_
+
+#include <string>
+
+namespace utils
+{
+ namespace logo
+ {
+ /**
+ * \brief provides an ASCII art logo for WarpX
+ *
+ * \return a string containing an ASCII art logo
+ */
+ std::string get_logo () noexcept;
+ }
+}
+
+#endif
diff --git a/Source/Utils/Logo/GetLogo.cpp b/Source/Utils/Logo/GetLogo.cpp
new file mode 100644
index 000000000..c515ceac1
--- /dev/null
+++ b/Source/Utils/Logo/GetLogo.cpp
@@ -0,0 +1,15 @@
+#include "GetLogo.H"
+
+std::string utils::logo::get_logo () noexcept
+{
+ return
+R"(
+ __ __ __ __
+ \ \ / /_ _ _ __ _ __\ \/ /
+ \ \ /\ / / _` | '__| '_ \\ /
+ \ V V / (_| | | | |_) / \
+ \_/\_/ \__,_|_| | .__/_/\_\
+ |_|
+
+)";
+}
diff --git a/Source/Utils/Logo/Make.package b/Source/Utils/Logo/Make.package
new file mode 100644
index 000000000..2aa69ae46
--- /dev/null
+++ b/Source/Utils/Logo/Make.package
@@ -0,0 +1,3 @@
+CEXE_sources += GetLogo.cpp
+
+VPATH_LOCATIONS += $(WARPX_HOME)/Source/Utils/Logo