Skip to content

Commit 9506fc7

Browse files
committed
add cmake demo
1 parent 014ed46 commit 9506fc7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(hello)
4+
5+
add_executable(hello main.cpp)

week05/examples/cmakedemo/main.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
cout << "Hello, SUSTech." << endl;
7+
return 0;
8+
}

0 commit comments

Comments
 (0)