1 Star 0 Fork 1

赵考/zjtcp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
赵考 提交于 2021-02-06 18:44 . add gps/fix main
cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0048 NEW)
project(zjtcp VERSION 0.1.0.0)
option(DEBUG "enable debug" ON)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O0 -g -Wno-unused-but-set-variable -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-unused-function -Wno-unused-variable")
# include aux cmake scripts
include("Gengetopt.cmake")
ADD_GENGETOPT_FILES(CMDLINE cmdline.ggo)
include("Findlibev.cmake")
set (EXTRALIB ${LIBEV_LIBRARY})
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
include_directories("${CMAKE_CURRENT_BINARY_DIR}"
"${PROJECT_BINARY_DIR}"
"${PROJECT_SOURCE_DIR}")
set(RCTLD
serial.c
common.c
cmdline.c
buffer.c
main.c
)
# extra libs
find_package(Threads)
set (EXTRALIB ${EXTRALIB} ${CMAKE_THREAD_LIBS_INIT})
# target
add_executable(zjtcp ${CMDLINE} ${RCTLD} ${LIBLIST} )
target_link_libraries(zjtcp ${EXTRALIB} m)
# install
install(TARGETS zjtcp DESTINATION bin)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhao381597/zjtcp.git
git@gitee.com:zhao381597/zjtcp.git
zhao381597
zjtcp
zjtcp
master

搜索帮助