llvm-project/clang-tools-extra/cpp11-migrate/CMakeLists.txt

27 lines
579 B
CMake

set(LLVM_LINK_COMPONENTS support)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
set (Cpp11MigrateSources
Cpp11Migrate.cpp
Transforms.cpp
Transform.cpp
)
# For each transform subdirectory.
file(GLOB_RECURSE LoopConvertSources "LoopConvert/*.cpp")
list(APPEND Cpp11MigrateSources ${LoopConvertSources})
file(GLOB_RECURSE UseNullptrSources "UseNullptr/*.cpp")
list(APPEND Cpp11MigrateSources ${UseNullptrSources})
add_clang_executable(cpp11-migrate
${Cpp11MigrateSources}
)
target_link_libraries(cpp11-migrate
clangTooling
clangBasic
clangASTMatchers
)