Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « clang-modernize « unittests « clang-tools-extra - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 80fd4a74bd07d424d99a57a1440f7ebeb26c194b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set(LLVM_LINK_COMPONENTS
  support
  )

get_filename_component(CLANG_MODERNIZE_SOURCE_DIR
  ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-modernize REALPATH)
get_filename_component(ClangReplaceLocation
  "${CMAKE_CURRENT_SOURCE_DIR}/../../clang-apply-replacements/include" REALPATH)
get_filename_component(CommonIncLocation
  "${CMAKE_CURRENT_SOURCE_DIR}/../include" REALPATH)
include_directories(
  ${CLANG_MODERNIZE_SOURCE_DIR}
  ${ClangReplaceLocation}
  ${CommonIncLocation}
  )

add_extra_unittest(ClangModernizeTests
  IncludeExcludeTest.cpp
  PerfSupportTest.cpp
  TransformTest.cpp
  UniqueHeaderNameTest.cpp
  IncludeDirectivesTest.cpp
  )

target_link_libraries(ClangModernizeTests
  modernizeCore
  clangFormat
  clangTooling
  clangBasic
  clangASTMatchers
  clangRewriteFrontend
  )