提交 c4a5e5d4 编写于 作者: S SanmuWangZJU 提交者: LINGuanRen

[liboblog-ce]provide static lib of liboblog and header of oblogmsg

上级 85c634e1
......@@ -68,11 +68,12 @@ set(OCEANBASE_DEVEL_BIN_FILES "")
if (OB_BUILD_LIBOBLOG)
# lib
# list(APPEND OCEANBASE_DEVEL_LIB_FILES ${CMAKE_BINARY_DIR}/src/liboblog/src/liboblog.a)
list(APPEND OCEANBASE_DEVEL_LIB_FILES ${CMAKE_BINARY_DIR}/src/liboblog/src/liboblog.so)
list(APPEND OCEANBASE_DEVEL_LIB_FILES ${CMAKE_BINARY_DIR}/src/liboblog/src/liboblog.so.1)
list(APPEND OCEANBASE_DEVEL_LIB_FILES ${CMAKE_BINARY_DIR}/src/liboblog/src/liboblog.so.1.0.0)
# include
# include lilboblog header
list(APPEND OCEANBASE_DEVEL_INCLUDE_FILES src/liboblog/src/liboblog.h)
# bin
......@@ -100,6 +101,13 @@ install(PROGRAMS
COMPONENT devel
)
if (OB_BUILD_LIBOBLOG)
install(DIRECTORY
"deps/logmessage/include/"
DESTINATION /usr/include/oblogmsg
COMPONENT devel)
endif()
## oceanbase-libs
install(PROGRAMS
deps/3rd/usr/local/oceanbase/deps/devel/lib/libaio.so.1
......
......@@ -152,7 +152,6 @@ disable_pch(oblog_objects_miner)
target_link_libraries(oblog_objects_miner PUBLIC oblog_miner)
add_library(oblog_static
STATIC
EXCLUDE_FROM_ALL
${CMAKE_BINARY_DIR}/src/observer/ob_version.cpp)
target_link_libraries(oblog_static
PUBLIC oblog_objects_miner oblib
......@@ -162,3 +161,4 @@ target_link_libraries(oblog_static
PRIVATE -static-libgcc -static-libstdc++
${LGPL_DEPS}
)
set_target_properties(oblog_static PROPERTIES OUTPUT_NAME "oblog")
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册