1 Star 0 Fork 13

yanliebing/mbinlogmq

forked from Josin/mbinlogmq 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
liqiongfan 提交于 2019-07-25 16:36 . 修复Linux系统需要math库
cmake_minimum_required(VERSION 3.13)
project(mysql_binlog C)
set(CMAKE_C_STANDARD 99)
# 您需要更新下面的三个库路径即可
set(MYSQL_INCLUDE /usr/local/mysql/include) # 您系统的MySQL头文件路径
set(MYSQL_LIBRARY_DIR /usr/local/mysql/lib) # 您系统的MySQL库文件路径
set(CURL_DIR /usr/local/Cellar/curl/7.58.0) # 您系统的curl安装路径
set(
ALL_PERMISSIONS
OWNER_WRITE OWNER_READ OWNER_EXECUTE
GROUP_READ GROUP_WRITE GROUP_EXECUTE
WORLD_READ WORLD_WRITE WORLD_EXECUTE
)
include_directories(
.
src
src/json
src/xml
src/tool
src/binlog
${CURL_DIR}/include
${MYSQL_INCLUDE}
)
link_directories( ${MYSQL_LIBRARY_DIR} ${CURL_DIR}/lib )
aux_source_directory(. MAIN_SOURCE)
aux_source_directory(src/json JSON_SOURCE)
aux_source_directory(src/xml XML_SOURCE)
aux_source_directory(src/tool TOOL_SOURCE)
aux_source_directory(src/binlog BINLOG_SOURCE)
add_executable(
mbinlogmq
main.c
${MAIN_SOURCE} ${JSON_SOURCE} ${XML_SOURCE} ${TOOL_SOURCE} ${BINLOG_SOURCE}
)
target_link_libraries(mbinlogmq mysqlclient pthread curl m)
install(TARGETS mbinlogmq RUNTIME DESTINATION /usr/local/bin)
install(FILES conf/binlog.xml DESTINATION /etc/mbinlogmq)
install(DIRECTORY DESTINATION /var/log/mbinlogmq DIRECTORY_PERMISSIONS ${ALL_PERMISSIONS})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/yanliebing_adminz/mbinlogmq.git
git@gitee.com:yanliebing_adminz/mbinlogmq.git
yanliebing_adminz
mbinlogmq
mbinlogmq
release

搜索帮助