Skip to content

Commit 16db884

Browse files
Yucong Sunsunmilee
authored andcommitted
Create stub files for c and cpp lanaguegs (#1)
1 parent 2ed5621 commit 16db884

File tree

7 files changed

+36
-0
lines changed

7 files changed

+36
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# idea
2+
/.idea
3+
4+
# cmake stuff
5+
cmake-build-*

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(libra-client-dev)
4+
5+
add_subdirectory(c)
6+
add_subdirectory(cpp)

c/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(libra-client-c-dev)
4+
5+
set(CMAKE_C_STANDARD 11)
6+
7+
add_executable(c-client main.c)

c/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
fprintf(stdout, "it works!");
5+
}

cpp/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(libra-client-cpp-dev)
4+
5+
set(CMAKE_CXX_STANDARD 11)
6+
7+
add_executable(cpp-client main.cc)

cpp/main.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <iostream>
2+
3+
int main() {
4+
std::cout << "it works!";
5+
}

python/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

0 commit comments

Comments
 (0)