CMakeLists.txt 424 字节
Newer Older
H
Hongze Cheng 已提交
1

H
refact  
Hongze Cheng 已提交
2
set(TDB_SUBDIRS "db")
H
Hongze Cheng 已提交
3 4 5 6
foreach(TDB_SUBDIR ${TDB_SUBDIRS})
    aux_source_directory("src/${TDB_SUBDIR}" TDB_SRC)
endforeach()

H
refact  
Hongze Cheng 已提交
7
add_library(tdb STATIC ${TDB_SRC})
H
Hongze Cheng 已提交
8

H
refact  
Hongze Cheng 已提交
9
target_include_directories(
H
refact  
Hongze Cheng 已提交
10
    tdb
H
refact  
Hongze Cheng 已提交
11 12
    PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc"
    PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/inc"
H
Hongze Cheng 已提交
13 14
)
target_link_libraries(
H
refact  
Hongze Cheng 已提交
15
    tdb
H
Hongze Cheng 已提交
16
    PUBLIC os
H
Hongze Cheng 已提交
17
    PUBLIC util
H
more  
Hongze Cheng 已提交
18 19 20
)

if(${BUILD_TEST})
H
Hongze Cheng 已提交
21
    add_subdirectory(test)
H
more  
Hongze Cheng 已提交
22
endif(${BUILD_TEST})