CMakeLists.txt 719 字节
Newer Older
H
Hongze Cheng 已提交
1 2 3 4 5 6
aux_source_directory(src TRANSPORT_SRC)
add_library(transport ${TRANSPORT_SRC})
target_include_directories(
    transport
    PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/transport"
    PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
S
Shengliang Guan 已提交
7 8 9 10 11 12 13 14
)

target_link_libraries(
    transport
    PUBLIC lz4_static
    PUBLIC os
    PUBLIC util
    PUBLIC common
dengyihao's avatar
dengyihao 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
)
if (${BUILD_WITH_UV}) 
  target_include_directories(
    transport    
    PUBLIC "${CMAKE_SOURCE_DIR}/contrib/libuv/include"
  )

#LINK_DIRECTORIES("${CMAKE_SOURCE_DIR}/debug/contrib/libuv")
  target_link_libraries(
    transport    
    PUBLIC uv_a
  )
  add_definitions(-DUSE_UV) 
endif(${BUILD_WITH_UV})  

dengyihao's avatar
dengyihao 已提交
30 31 32 33 34 35 36
if (${BUILD_TEST})
  add_subdirectory(test)
endif(${BUILD_TEST})




dengyihao's avatar
dengyihao 已提交
37