generated from TDD-Templates/cmake_cpputest_template
Added module `Radio` to the repo.
This commit is contained in:
parent
5564f1178e
commit
d534b1bd56
|
@ -1,3 +1,4 @@
|
|||
add_executable(main
|
||||
main.c
|
||||
)
|
||||
add_subdirectory(Radio)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
add_library(Radio STATIC
|
||||
Radio.c
|
||||
)
|
||||
|
||||
target_include_directories(Radio PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
)
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Author: username
|
||||
* Date: 2024
|
||||
* filename: Radio.c
|
||||
* description: module_purpose
|
||||
*/
|
||||
|
||||
#include "Radio.h"
|
||||
|
||||
// dumb test function
|
||||
int add_two(int a)
|
||||
{
|
||||
int b = a;
|
||||
b += 2;
|
||||
return b;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* Author: username
|
||||
* Date: 2024
|
||||
* filename: RADIO.h
|
||||
* description: module_purpose
|
||||
*/
|
||||
|
||||
#ifndef RADIO
|
||||
#define RADIO
|
||||
|
||||
|
||||
int add_two(int a);
|
||||
|
||||
#endif //RADIO
|
Loading…
Reference in New Issue