Set up test framework with demo test

This commit is contained in:
Daniel Thorpe
2024-06-20 15:56:30 +01:00
parent 9dd0c42ca7
commit 2a8be1c462
5 changed files with 39 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
add_library(gemhadar_lib
"fd_io.c"
"url.c"
)
target_include_directories(gemhadar_lib PUBLIC "include")
set_property(TARGET gemhadar_lib PROPERTY C_STANDARD 11)

6
lib/include/url.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef URL_H
#define URL_H
int foo(void);
#endif

6
lib/url.c Normal file
View File

@@ -0,0 +1,6 @@
#include "url.h"
int foo(void)
{
return 42;
}