代码拉取完成,页面将自动刷新
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。