Skip to content

Commit

Permalink
Added hello world demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaparisi91 committed Aug 30, 2023
1 parent 372a1dc commit a1cb139
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demos/hello_world/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.2)

project( hello_world LANGUAGES Fortran )

add_executable( hello )
target_sources( hello PRIVATE hello.f90 )

install(TARGETS hello )
6 changes: 6 additions & 0 deletions demos/hello_world/hello.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
program main
implicit none

print *, "Hello world!"

end program main

0 comments on commit a1cb139

Please sign in to comment.