Skip to content

Commit 898d852

Browse files
committed
Add code
1 parent 908ccba commit 898d852

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
3+
project(main)
4+
5+
add_executable(main main.cpp)
6+
7+
install(TARGETS main)
8+
9+
enable_testing()
10+
add_test(NAME main COMMAND main)

main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <iostream>
2+
3+
int main()
4+
{
5+
std::cout << "Hello world\n";
6+
}

0 commit comments

Comments
 (0)