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"
)

target_link_libraries(
    transport
    PUBLIC lz4_static
    PUBLIC os
    PUBLIC util
    PUBLIC common
)
if (${BUILD_WITH_UV_TRANS}) 
if (${BUILD_WITH_UV})
  target_include_directories(
    transport    
    PUBLIC "${CMAKE_SOURCE_DIR}/contrib/libuv/include"
  )
  
  target_link_libraries(
    transport    
    PUBLIC uv_a
  )
  add_definitions(-DUSE_UV) 
endif(${BUILD_WITH_UV})
endif(${BUILD_WITH_UV_TRANS})  

if (${BUILD_TEST})
  add_subdirectory(test)
endif(${BUILD_TEST})




  
