2 Star 9 Fork 2

liudengfeng / project_25300166

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dengfeng Liu 提交于 2022-05-11 18:37 . feat: add tcp mux support
cmake_minimum_required(VERSION 2.6)
project(xfrp C)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(LibEvent)
if(NOT LibEvent_FOUND)
message(FATAL_ERROR "libevent2 not found!")
endif(NOT LibEvent_FOUND)
find_package(OpenSSL)
if(NOT OPENSSL_FOUND)
message(FATAL_ERROR "OpenSSL not found!")
endif(NOT OPENSSL_FOUND)
find_package(JSON-C REQUIRED)
include_directories(${JSON-C_INCLUDE_DIR})
set(src_xfrpc
main.c
client.c
config.c
control.c
ini.c
msg.c
xfrpc.c
debug.c
zip.c
commandline.c
crypto.c
fastpbkdf2.c
utils.c
common.c
login.c
proxy_tcp.c
proxy_ftp.c
proxy.c
tcpmux.c
)
set(libs
ssl
crypto
event
z
m
json-c)
set(test_libs
event
)
ADD_DEFINITIONS(-Wall -g --std=gnu99)
add_executable(xfrpc ${src_xfrpc})
target_link_libraries(xfrpc ${libs})
install(TARGETS xfrpc
RUNTIME DESTINATION bin
)
C
1
https://gitee.com/apfree/xfrpc.git
git@gitee.com:apfree/xfrpc.git
apfree
xfrpc
project_25300166
master

搜索帮助