重新设计了cmake编译过程
This commit is contained in:
5
lib/CMakeLists.txt
Normal file
5
lib/CMakeLists.txt
Normal 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
9
lib/example.c
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// Created by ricardo on 2022/4/29.
|
||||
//
|
||||
#include "example.h"
|
||||
|
||||
void print(char* str)
|
||||
{
|
||||
printf("%s", str);
|
||||
}
|
Reference in New Issue
Block a user