summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-12-08 11:16:23 +0800
committerluwenpeng <[email protected]>2023-12-08 11:18:16 +0800
commitcf6d855aa44827b9ef1a7e7091e48aecdfd3156f (patch)
tree6abfacd9024a92ed676bac100c9aa3b5129c844d /src
Initial commit, building project framework
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/stellar/CMakeLists.txt2
-rw-r--r--src/stellar/stellar.cpp7
3 files changed, 10 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..40a51e7
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(stellar) \ No newline at end of file
diff --git a/src/stellar/CMakeLists.txt b/src/stellar/CMakeLists.txt
new file mode 100644
index 0000000..d20f8b5
--- /dev/null
+++ b/src/stellar/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(stellar stellar.cpp)
+install(TARGETS stellar RUNTIME DESTINATION bin COMPONENT Program) \ No newline at end of file
diff --git a/src/stellar/stellar.cpp b/src/stellar/stellar.cpp
new file mode 100644
index 0000000..e44548c
--- /dev/null
+++ b/src/stellar/stellar.cpp
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ printf("Hello Stellar\n");
+ return 0;
+} \ No newline at end of file