2013-09-03 21:16:02 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
|
|
|
get_filename_component(CPP11_MIGRATE_SOURCE_DIR
|
2013-09-05 01:35:07 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../clang-modernize REALPATH)
|
2013-09-03 21:16:02 +08:00
|
|
|
get_filename_component(ClangReplaceLocation
|
2013-09-04 01:58:19 +08:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../../clang-apply-replacements/include" REALPATH)
|
2013-09-03 21:16:02 +08:00
|
|
|
include_directories(
|
|
|
|
${CPP11_MIGRATE_SOURCE_DIR}
|
|
|
|
${ClangReplaceLocation}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_extra_unittest(Cpp11MigrateTests
|
|
|
|
FileOverridesTest.cpp
|
|
|
|
ReformattingTest.cpp
|
|
|
|
IncludeExcludeTest.cpp
|
|
|
|
PerfSupportTest.cpp
|
|
|
|
TransformTest.cpp
|
|
|
|
UniqueHeaderNameTest.cpp
|
|
|
|
IncludeDirectivesTest.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(Cpp11MigrateTests
|
2013-09-05 02:03:44 +08:00
|
|
|
modernizeCore
|
2013-09-03 21:16:02 +08:00
|
|
|
clangFormat
|
|
|
|
clangTooling
|
|
|
|
clangBasic
|
|
|
|
clangASTMatchers
|
|
|
|
clangRewriteFrontend
|
|
|
|
)
|