CMakeLists.txt 357 字节
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3 4 5 6
aux_source_directory(src COMMON_SRC)
add_library(common ${COMMON_SRC})
target_include_directories(
    common
    PUBLIC "${CMAKE_SOURCE_DIR}/include/common"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
7 8 9 10 11
)
target_link_libraries(
    common
    PUBLIC os
    PUBLIC util
H
Hongze Cheng 已提交
12
    INTERFACE api
13 14
)

H
refact  
Hongze Cheng 已提交
15 16 17
if(${BUILD_TEST})
    ADD_SUBDIRECTORY(test)
endif(${BUILD_TEST})