Skip to content

q1lon/cmake-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cmake

使用cmake直接构建makefile

> mkdir -p build && cd build && cmake .. //使用本地 CmakeLists.txt内容构建makefile
> make //make 编译
//执行结果
> ./main 'database/test-db' 'select * from main.m_user'  

使用clang编译

> sudo ./run_test.sh //执行脚本

参考

https://sfumecjf.github.io/cmake-examples-Chinese/

About

使用cmake构建makefile 完成编译c程序

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published