first commit
This commit is contained in:
3
lib/testlib/CMakeLists.txt
Normal file
3
lib/testlib/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
add_library(testlib testlib.c)
|
||||
|
||||
target_include_directories(testlib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
11
lib/testlib/testlib.c
Normal file
11
lib/testlib/testlib.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/* testlib.c */
|
||||
#include "testlib.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef MESSAGE
|
||||
#define MESSAGE "Hello from testlib!"
|
||||
#endif
|
||||
|
||||
void print_message() {
|
||||
printf("%s\n", MESSAGE);
|
||||
}
|
||||
7
lib/testlib/testlib.h
Normal file
7
lib/testlib/testlib.h
Normal file
@@ -0,0 +1,7 @@
|
||||
/* testlib.h */
|
||||
#ifndef TESTLIB_H
|
||||
#define TESTLIB_H
|
||||
|
||||
void print_message();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user