2012-12-12 22:30:57 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
|
2013-01-05 02:25:18 +08:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
set (Cpp11MigrateSources
|
2012-12-12 22:30:57 +08:00
|
|
|
Cpp11Migrate.cpp
|
2013-01-05 02:25:18 +08:00
|
|
|
Transforms.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# For each transform subdirectory.
|
|
|
|
file(GLOB_RECURSE LoopConvertSources "LoopConvert/*.cpp")
|
|
|
|
list(APPEND Cpp11MigrateSources ${LoopConvertSources})
|
|
|
|
|
|
|
|
add_clang_executable(cpp11-migrate
|
|
|
|
${Cpp11MigrateSources}
|
2012-12-12 22:30:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(cpp11-migrate
|
|
|
|
clangTooling
|
|
|
|
clangBasic
|
|
|
|
clangASTMatchers
|
|
|
|
)
|