CMakeLists.txt 1.8 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
add_executable(transUT "")
dengyihao's avatar
dengyihao 已提交
5
add_executable(syncClient "")
dengyihao's avatar
dengyihao 已提交
6
add_executable(pushServer "")
dengyihao's avatar
dengyihao 已提交
7 8 9

target_sources(transUT
  PRIVATE
H
Haojun Liao 已提交
10
  "transUT.cpp"
dengyihao's avatar
dengyihao 已提交
11
)  
dengyihao's avatar
dengyihao 已提交
12 13
target_sources(transportTest 
  PRIVATE
H
Haojun Liao 已提交
14
  "transportTests.cpp"
dengyihao's avatar
dengyihao 已提交
15
)  
dengyihao's avatar
dengyihao 已提交
16 17 18 19 20 21 22 23
target_sources (client
  PRIVATE
  "rclient.c" 
)   
target_sources (server
  PRIVATE
  "rserver.c" 
)   
dengyihao's avatar
dengyihao 已提交
24 25 26 27
target_sources (syncClient
  PRIVATE
  "syncClient.c" 
)   
dengyihao's avatar
dengyihao 已提交
28

dengyihao's avatar
dengyihao 已提交
29 30 31 32
target_sources(pushServer
  PRIVATE
  "pushServer.c"
)
dengyihao's avatar
dengyihao 已提交
33

dengyihao's avatar
dengyihao 已提交
34 35
target_include_directories(transportTest 
  PUBLIC
wafwerar's avatar
wafwerar 已提交
36
  "${TD_SOURCE_DIR}/include/libs/transport" 
dengyihao's avatar
dengyihao 已提交
37 38 39 40 41 42 43 44 45 46
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

target_link_libraries (transportTest
  os  
  util
  common
  gtest_main
  transport 
)
dengyihao's avatar
dengyihao 已提交
47 48 49 50 51 52 53
target_link_libraries (transUT
  os  
  util
  common
  gtest_main
  transport 
)
dengyihao's avatar
dengyihao 已提交
54

dengyihao's avatar
dengyihao 已提交
55 56
target_include_directories(client
  PUBLIC
wafwerar's avatar
wafwerar 已提交
57
  "${TD_SOURCE_DIR}/include/libs/transport" 
dengyihao's avatar
dengyihao 已提交
58 59 60 61 62 63 64 65 66 67 68 69
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

target_link_libraries (client
  os  
  util
  common
  gtest_main
  transport 
)
target_include_directories(server
  PUBLIC
wafwerar's avatar
wafwerar 已提交
70
  "${TD_SOURCE_DIR}/include/libs/transport" 
dengyihao's avatar
dengyihao 已提交
71 72 73
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

dengyihao's avatar
dengyihao 已提交
74 75
target_include_directories(transUT
  PUBLIC
wafwerar's avatar
wafwerar 已提交
76
  "${TD_SOURCE_DIR}/include/libs/transport" 
dengyihao's avatar
dengyihao 已提交
77 78 79
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 

dengyihao's avatar
dengyihao 已提交
80 81 82 83 84 85 86
target_link_libraries (server
  os  
  util
  common
  gtest_main
  transport 
)
dengyihao's avatar
dengyihao 已提交
87 88
target_include_directories(syncClient
  PUBLIC
wafwerar's avatar
wafwerar 已提交
89
  "${TD_SOURCE_DIR}/include/libs/transport" 
dengyihao's avatar
dengyihao 已提交
90 91 92 93 94 95 96 97 98 99
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
target_link_libraries (syncClient
  os  
  util
  common
  gtest_main
  transport 
)

dengyihao's avatar
dengyihao 已提交
100 101
target_include_directories(pushServer
  PUBLIC
wafwerar's avatar
wafwerar 已提交
102
  "${TD_SOURCE_DIR}/include/libs/transport" 
dengyihao's avatar
dengyihao 已提交
103 104 105 106 107 108 109 110 111 112
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
target_link_libraries (pushServer
  os  
  util
  common
  gtest_main
  transport 
)