1 Star 0 Fork 1

taotieren / OkGloox

forked from OkStar / OkGloox 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 603 Bytes
一键复制 编辑 原始数据 按行查看 历史
HNCS 提交于 2023-09-22 14:55 . 消息增加加密处理
cmake_minimum_required(VERSION 3.22)
project( gloox )
add_subdirectory( src )
include( FindZLIB )
include( CheckFunctionExists )
#option( SETSOCKOPTS_EXISTS "We have setsockopt()" ON )
check_function_exists( setsockopt SETSOCKOPT_EXISTS )
if( SETSOCKOPT_EXISTS )
write_file( ${CMAKE_CURRENT_SOURCE_DIR}/config.h "#define HAVE_SETSOCKOPT 1")
endif( SETSOCKOPT_EXISTS )
if( ZLIB_FOUND )
set( LIBS ${LIBS} ${ZLIB_LIBRARIES} )
set( INCLUDE_DIRS ${INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} )
write_file( ${CMAKE_CURRENT_SOURCE_DIR}/config.h "#define HAVE_ZLIB 1" APPEND )
endif( ZLIB_FOUND)
C++
1
https://gitee.com/taotieren/ok-gloox.git
git@gitee.com:taotieren/ok-gloox.git
taotieren
ok-gloox
OkGloox
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891