Skip to content

Commit 71ad1c8

Browse files
committed
Add dummy c library
1 parent 513789e commit 71ad1c8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

glue-codes/openfast/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ if(BUILD_OPENFAST_LIB_DRIVER)
4242
endif()
4343

4444

45+
add_library(dummyclib SHARED
46+
src/Dummyc.cpp
47+
)

glue-codes/openfast/src/dummyc.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
#include <string>
3+
#include <stdlib.h>
4+
#include <iostream>
5+
#include <math.h>
6+
#include <cstring>
7+
8+
void NoOpNoArg() {
9+
// This is a dummy function to prevent linking errors
10+
// when the library is compiled without any actual code.
11+
// It does nothing and takes no arguments.
12+
// You can add any code here if needed, but it's not required.
13+
int a = 1;
14+
int b = 2;
15+
int c = a + b;
16+
}

0 commit comments

Comments
 (0)