CMakeLists.txt 1.4 KB
Newer Older
dengyihao's avatar
dengyihao 已提交
1
add_executable(indexTest "")
dengyihao's avatar
dengyihao 已提交
2
add_executable(fstTest "")
dengyihao's avatar
dengyihao 已提交
3
add_executable(fstUT "")
dengyihao's avatar
dengyihao 已提交
4
add_executable(UtilUT "")
dengyihao's avatar
dengyihao 已提交
5
add_executable(jsonUT "")
dengyihao's avatar
dengyihao 已提交
6

dengyihao's avatar
dengyihao 已提交
7 8
target_sources(indexTest
  PRIVATE 
dengyihao's avatar
dengyihao 已提交
9
  "indexTests.cc" 
dengyihao's avatar
dengyihao 已提交
10
)
dengyihao's avatar
dengyihao 已提交
11 12 13 14
target_sources(fstTest
  PRIVATE 
  "fstTest.cc" 
)
dengyihao's avatar
dengyihao 已提交
15 16 17 18 19

target_sources(fstUT
  PRIVATE 
  "fstUT.cc" 
)
dengyihao's avatar
dengyihao 已提交
20 21 22 23 24
target_sources(UtilUT
  PRIVATE 
  "utilUT.cc" 
)

dengyihao's avatar
dengyihao 已提交
25 26 27 28
target_sources(jsonUT
  PRIVATE 
  "jsonUT.cc" 
)
dengyihao's avatar
dengyihao 已提交
29 30
target_include_directories ( indexTest
  PUBLIC
wafwerar's avatar
wafwerar 已提交
31
  "${TD_SOURCE_DIR}/include/libs/index" 
dengyihao's avatar
dengyihao 已提交
32 33
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
dengyihao's avatar
dengyihao 已提交
34 35
target_include_directories ( fstTest 
  PUBLIC
wafwerar's avatar
wafwerar 已提交
36
  "${TD_SOURCE_DIR}/include/libs/index" 
dengyihao's avatar
dengyihao 已提交
37 38
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
dengyihao's avatar
dengyihao 已提交
39 40 41

target_include_directories ( fstUT 
  PUBLIC
wafwerar's avatar
wafwerar 已提交
42
  "${TD_SOURCE_DIR}/include/libs/index" 
dengyihao's avatar
dengyihao 已提交
43 44
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
dengyihao's avatar
dengyihao 已提交
45 46 47

target_include_directories ( UtilUT 
  PUBLIC
wafwerar's avatar
wafwerar 已提交
48
  "${TD_SOURCE_DIR}/include/libs/index" 
dengyihao's avatar
dengyihao 已提交
49 50
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
dengyihao's avatar
dengyihao 已提交
51 52 53

target_include_directories (jsonUT
  PUBLIC
wafwerar's avatar
wafwerar 已提交
54
  "${TD_SOURCE_DIR}/include/libs/index" 
dengyihao's avatar
dengyihao 已提交
55 56
  "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) 
dengyihao's avatar
dengyihao 已提交
57 58 59 60 61 62 63
target_link_libraries (indexTest
  os  
  util
  common
  gtest_main
  index
)
dengyihao's avatar
dengyihao 已提交
64 65 66 67 68 69
target_link_libraries (fstTest
  os  
  util
  common
  gtest_main
  index
dengyihao's avatar
dengyihao 已提交
70
)
dengyihao's avatar
dengyihao 已提交
71 72 73 74 75 76 77
target_link_libraries (fstUT
  os  
  util
  common
  gtest_main
  index
)
dengyihao's avatar
dengyihao 已提交
78

dengyihao's avatar
dengyihao 已提交
79 80 81 82 83 84 85 86
target_link_libraries (UtilUT
  os  
  util
  common
  gtest_main
  index
)

dengyihao's avatar
dengyihao 已提交
87 88 89 90 91 92 93
target_link_libraries (jsonUT
  os  
  util
  common
  gtest_main
  index
)
dengyihao's avatar
dengyihao 已提交
94 95 96 97 98

#add_test(
#  NAME index_test
#  COMMAND indexTest
#)