generated from TDD-Templates/cmake_cpputest_template
Added module Radio
to the repo.
This commit is contained in:
parent
5564f1178e
commit
d534b1bd56
4 changed files with 38 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
add_executable(main
|
add_executable(main
|
||||||
main.c
|
main.c
|
||||||
)
|
)
|
||||||
|
add_subdirectory(Radio)
|
||||||
|
|
7
src/Radio/CMakeLists.txt
Normal file
7
src/Radio/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
add_library(Radio STATIC
|
||||||
|
Radio.c
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(Radio PUBLIC
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}
|
||||||
|
)
|
16
src/Radio/Radio.c
Normal file
16
src/Radio/Radio.c
Normal file
|
@ -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;
|
||||||
|
}
|
14
src/Radio/Radio.h
Normal file
14
src/Radio/Radio.h
Normal file
|
@ -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…
Add table
Reference in a new issue