1 Star 0 Fork 40

洪山/tcpdaemon

forked from calvinwilliams/tcpdaemon 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 750 Bytes
一键复制 编辑 原始数据 按行查看 历史
sky蓝色 提交于 2018-02-02 17:01 . cmake add subdirectory test
project(tcpdaemon)
cmake_minimum_required(VERSION 2.8)
SET(LIBSRC
src/tcpdaemon_lib.c
src/LOGC.c
src/list.c
src/rbtree_ins.c
src/rbtree.c
)
add_library(tcpdaemon_s STATIC ${LIBSRC})
set_target_properties(tcpdaemon_s PROPERTIES OUTPUT_NAME tcpdaemon )
INSTALL(TARGETS tcpdaemon_s DESTINATION lib)
add_executable(tcpdaemon src/tcpdaemon_main.c)
target_link_libraries(tcpdaemon tcpdaemon_s dl)
INSTALL(TARGETS tcpdaemon DESTINATION bin)
INSTALL(FILES src/tcpdaemon.h DESTINATION include)
add_subdirectory(test)
include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_GENERATOR "TGZ")
set(CPACK_PACKAGE_NAME tcpdaemon)
INCLUDE(CPack)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/rogerhong/tcpdaemon.git
git@gitee.com:rogerhong/tcpdaemon.git
rogerhong
tcpdaemon
tcpdaemon
release

搜索帮助