CMakeLists.txt 1.2 KB
Newer Older
dengyihao's avatar
dengyihao 已提交
1
add_executable(transportTest "")
dengyihao's avatar
dengyihao 已提交
2 3
add_executable(client "")
add_executable(server "")
dengyihao's avatar
dengyihao 已提交
4 5 6 7 8 9
add_executable(transUT "")

target_sources(transUT
  PRIVATE
  "transUT.cc"
)  
dengyihao's avatar
dengyihao 已提交
10

dengyihao's avatar
dengyihao 已提交
11 12 13 14
target_sources(transportTest 
  PRIVATE
  "transportTests.cc"
)  
dengyihao's avatar
dengyihao 已提交
15 16 17 18 19 20 21 22
target_sources (client
  PRIVATE
  "rclient.c" 
)   
target_sources (server
  PRIVATE
  "rserver.c" 
)   
dengyihao's avatar
dengyihao 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36

target_include_directories(transportTest 
  PUBLIC
  "${CMAKE_SOURCE_DIR}/include/libs/transport" 
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

target_link_libraries (transportTest
  os  
  util
  common
  gtest_main
  transport 
)
dengyihao's avatar
dengyihao 已提交
37 38 39 40 41 42 43
target_link_libraries (transUT
  os  
  util
  common
  gtest_main
  transport 
)
dengyihao's avatar
dengyihao 已提交
44

dengyihao's avatar
dengyihao 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
target_include_directories(client
  PUBLIC
  "${CMAKE_SOURCE_DIR}/include/libs/transport" 
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

target_link_libraries (client
  os  
  util
  common
  gtest_main
  transport 
)
target_include_directories(server
  PUBLIC
  "${CMAKE_SOURCE_DIR}/include/libs/transport" 
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

dengyihao's avatar
dengyihao 已提交
64 65 66 67 68 69 70
target_include_directories(transUT
  PUBLIC
  "${CMAKE_SOURCE_DIR}/include/libs/transport" 
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 


dengyihao's avatar
dengyihao 已提交
71 72 73 74 75 76 77
target_link_libraries (server
  os  
  util
  common
  gtest_main
  transport 
)
dengyihao's avatar
dengyihao 已提交
78