CMakeLists.txt 545 字节
Newer Older
H
Hongze Cheng 已提交
1
# tdb
wafwerar's avatar
wafwerar 已提交
2
add_library(tdb SHARED "")
H
more  
Hongze Cheng 已提交
3 4
target_sources(tdb
    PRIVATE
H
refact  
Hongze Cheng 已提交
5
    "src/db/tdbPCache.c"
H
Hongze Cheng 已提交
6
    "src/db/tdbPager.c"
H
more  
Hongze Cheng 已提交
7
    "src/db/tdbUtil.c"
H
Hongze Cheng 已提交
8
    "src/db/tdbBtree.c"
H
Hongze Cheng 已提交
9
    "src/db/tdbDb.c"
H
Hongze Cheng 已提交
10
    "src/db/tdbEnv.c"
H
Hongze Cheng 已提交
11
    "src/db/tdbTxn.c"
H
Hongze Cheng 已提交
12
    "src/db/tdbPage.c"
H
Hongze Cheng 已提交
13
    "src/db/tdbOs.c"
H
more  
Hongze Cheng 已提交
14
)
H
Hongze Cheng 已提交
15

H
refact  
Hongze Cheng 已提交
16
target_include_directories(
H
refact  
Hongze Cheng 已提交
17
    tdb
H
refact  
Hongze Cheng 已提交
18 19
    PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc"
    PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/inc"
H
Hongze Cheng 已提交
20 21
)
target_link_libraries(
H
refact  
Hongze Cheng 已提交
22
    tdb
H
Hongze Cheng 已提交
23
    PUBLIC os
H
Hongze Cheng 已提交
24
    PUBLIC util
H
more  
Hongze Cheng 已提交
25 26
)

H
more  
Hongze Cheng 已提交
27
# for test
H
more  
Hongze Cheng 已提交
28
if(${BUILD_TEST})
H
Hongze Cheng 已提交
29
    add_subdirectory(test)
H
more  
Hongze Cheng 已提交
30
endif(${BUILD_TEST})