summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/shared/src/main.cpp
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-02 21:33:35 +0800
committerGitHub <[email protected]>2026-03-02 21:33:35 +0800
commit4662898e3eae02b84045bae6448c79758edbd5c9 (patch)
tree858e340fb0346cb7a62836ce3137c7ff05f1793f /xmake/templates/c++/shared/src/main.cpp
parent71e10b70334401d46c47f574c8f46fcd20ccf818 (diff)
parentadc44b2e92c94ff795071ac8ed0d08a0a29f36cf (diff)
Merge pull request #7360 from xmake-io/template
Supports custom templates
Diffstat (limited to 'xmake/templates/c++/shared/src/main.cpp')
-rw-r--r--xmake/templates/c++/shared/src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/templates/c++/shared/src/main.cpp b/xmake/templates/c++/shared/src/main.cpp
new file mode 100644
index 000000000..3834ee4d3
--- /dev/null
+++ b/xmake/templates/c++/shared/src/main.cpp
@@ -0,0 +1,7 @@
+#include "foo.h"
+#include <iostream>
+
+int main(int argc, char **argv) {
+ std::cout << "add(1, 2) = " << add(1, 2) << std::endl;
+ return 0;
+}