1 Star 0 Fork 0

zettadb/zettalib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
snowao 提交于 2022-05-18 17:48 . add StorageShardConnection related staff
cmake_minimum_required(VERSION 3.0.0)
project(zettalib VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
add_compile_options(-fPIC)
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)
add_definitions(-DZETTA_LIB_COMPILER)
set(CMAKE_BUILD_TYPE "Debug")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -DENABLE_DEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -Wall -DENABLE_DEBUG")
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -O2")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -Wall -O2")
endif()
add_subdirectory(src/op_mysql)
add_subdirectory(src/op_pg)
add_subdirectory(src/zthread)
add_subdirectory(src/procenv)
add_subdirectory(src/error)
add_subdirectory(src/tool_func)
add_subdirectory(src/interval)
add_subdirectory(src/config_deal)
configure_file(src/sys_config.h.in sys_config.h)
add_library(zettalib STATIC src/sys_config.cc)
target_include_directories(zettalib PUBLIC
"${PROJECT_BINARY_DIR}"
"${PROJECT_SOURCE_DIR}/src"
"${PROJECT_SOURCE_DIR}/src/vendor/vendor_output/include"
)
link_directories(${CMAKE_SOURCE_DIR}/src/vendor/vendor_output/lib)
target_link_libraries(zettalib op_mysql op_pg procenv error zthread tool_func interval config_deal)
set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/output")
INSTALL(TARGETS zettalib ARCHIVE DESTINATION lib)
INSTALL(FILES
"${ERRORCUP_INSTALL_FIELS}"
"${OP_MYSQL_INSTALL_FIELS}"
"${OP_PG_INSTALL_FIELS}"
"${PROJECT_SOURCE_DIR}/src/procenv/biodirectpopen.h"
"${PROJECT_SOURCE_DIR}/src/procenv/proc_env.h"
"${PROJECT_SOURCE_DIR}/src/op_log/op_log.h"
"${ZTHREAD_INSTALL_FIELS}"
"${TOOL_FUNC_INSTALL_FIELS}"
"${INTERVAL_INSTALL_FIELS}"
"${CONFIG_DEAL_INSTALL_FIELS}"
DESTINATION include/zettalib)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zettadb/zettalib.git
git@gitee.com:zettadb/zettalib.git
zettadb
zettalib
zettalib
main

搜索帮助