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 36 37 38 39 40 41 42 43 44 45 46
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 已提交
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
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 已提交
74 75 76 77 78 79
target_include_directories(transUT
  PUBLIC
  "${CMAKE_SOURCE_DIR}/include/libs/transport" 
  "${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 89 90 91 92 93 94 95 96 97 98 99
target_include_directories(syncClient
  PUBLIC
  "${CMAKE_SOURCE_DIR}/include/libs/transport" 
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
target_link_libraries (syncClient
  os  
  util
  common
  gtest_main
  transport 
)

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