summaryrefslogtreecommitdiff
path: root/clang-tools-extra/unittests/clang-apply-replacements/CMakeLists.txt
blob: 9e5fac2a7bcefdab4f6dd112dd9504c2b9c1ba42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
get_filename_component(ClangApplyReplacementsLocation
  "${CMAKE_CURRENT_SOURCE_DIR}/../../clang-apply-replacements/include" REALPATH)
get_filename_component(CommonIncLocation
  "${CMAKE_CURRENT_SOURCE_DIR}/../include" REALPATH)
include_directories(
  ${ClangApplyReplacementsLocation}
  ${CommonIncLocation}
  )

add_extra_unittest(ClangApplyReplacementsTests
  ApplyReplacementsTest.cpp
  )

target_link_libraries(ClangApplyReplacementsTests
  PRIVATE
  clangApplyReplacements
  clangBasic
  clangToolingCore
  clangToolingRefactor
  )