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

CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/version.c.in" "${CMAKE_CURRENT_SOURCE_DIR}/src/version.c")