更新代码及部署文件
This commit is contained in:
parent
14a945c2c5
commit
cbdfb28e63
File diff suppressed because it is too large
Load Diff
|
@ -1,23 +0,0 @@
|
|||
# 设置库的输出路径
|
||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/clib/x86)
|
||||
|
||||
# 设置源代码
|
||||
set(KERNEL_SOURCES kit_db.c)
|
||||
|
||||
# 设置库名称变量
|
||||
set(LIB_KERNEL clib)
|
||||
|
||||
# 根据库名称变量,生成动态库
|
||||
add_library(${LIB_KERNEL} SHARED ${KERNEL_SOURCES})
|
||||
|
||||
# 设置版本信息
|
||||
set_target_properties(${LIB_KERNEL} PROPERTIES
|
||||
VERSION 1.0.1 # 完整版本号(可自定义)
|
||||
SOVERSION 1 # ABI 版本(主版本号,用于符号兼容性)
|
||||
)
|
||||
|
||||
# 添加动态库需要包含头文件目录
|
||||
target_include_directories(${LIB_KERNEL} PRIVATE ${CMAKE_SOURCE_DIR}/lib)
|
||||
|
||||
# 添加动态库链接的库名
|
||||
target_link_libraries(${LIB_KERNEL} sqlite3)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue