重新设计了cmake编译过程

This commit is contained in:
2022-04-29 10:37:33 +08:00
parent fa7e3054ff
commit 44fe004f58
7 changed files with 40 additions and 9 deletions

5
lib/CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
aux_source_directory(. LIB_SRCS)
include_directories(../include)
add_library(bus_lib ${LIB_SRCS})

9
lib/example.c Normal file
View File

@@ -0,0 +1,9 @@
//
// Created by ricardo on 2022/4/29.
//
#include "example.h"
void print(char* str)
{
printf("%s", str);
}