加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
gozfree 提交于 2021-03-23 00:01 . fix cmake
cmake_minimum_required(VERSION 3.9)
include_directories(include)
set(darray_src src/libdarray.c src/libserializer.c)
set(hash_src src/libhash.c)
set(posix_src src/libposix.c)
set(base64_src src/libbase64.c)
set(log_src src/liblog.c)
set(file_src src/filewatcher.c src/fio.c src/io.c src/libfile.c)
set(ipc_src src/libipc.c src/msgq_posix.c src/msgq_sysv.c src/netlink.c src/shm.c src/unix_socket.c)
set(gevent_src src/epoll.c src/libgevent.c src/poll.c src/select.c)
set(dict_src src/libdict.c)
set(queue_src src/libqueue.c)
set(vector_src src/libvector.c)
set(media-io_src src/audio-def.c src/libmedia-io.c src/video-def.c)
add_library(posix SHARED ${posix_src})
add_library(hash SHARED ${hash_src})
add_library(media-io SHARED ${media-io_src})
add_library(darray SHARED ${darray_src})
add_library(gevent SHARED ${gevent_src})
add_library(dict SHARED ${dict_src})
add_library(ipc SHARED ${ipc_src})
target_link_libraries(ipc rt gevent dict)
add_library(log SHARED ${log_src})
add_library(file SHARED ${file_src})
add_library(queue SHARED ${queue_src})
add_library(vector SHARED ${vector_src})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化