Skip to content

Commit 8d695c5

Browse files
committed
docs: added example package
1 parent 8e4e3f9 commit 8d695c5

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

example_packages/cpp_files/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cpp_files
2+
My cool new project!

example_packages/cpp_files/fpm.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name = "cpp_files"
2+
version = "0.1.0"
3+
license = "license"
4+
author = "arteevraina"
5+
maintainer = "[email protected]"
6+
copyright = "Copyright 2022, arteevraina"
7+
[build]
8+
auto-executables = true
9+
auto-tests = true
10+
auto-examples = true
11+
[install]
12+
library = false
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module cpp_files
2+
use, intrinsic :: ISO_C_Binding
3+
implicit none
4+
private
5+
6+
public :: hello_world
7+
8+
interface
9+
subroutine hello_world() bind(C, name = "hello_world")
10+
end subroutine hello_world
11+
end interface
12+
end module cpp_files
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <iostream>
2+
3+
extern "C" {
4+
int hello_world();
5+
}
6+
7+
int hello_world() {
8+
std::cout << "Hello World";
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
program check
2+
implicit none
3+
4+
print *, "Put some tests in here!"
5+
end program check

0 commit comments

Comments
 (0)