llvm-project/clang-tools-extra/unittests/include-fixer/CMakeLists.txt

30 lines
594 B
CMake

set(LLVM_LINK_COMPONENTS
support
)
get_filename_component(INCLUDE_FIXER_SOURCE_DIR
${CMAKE_CURRENT_SOURCE_DIR}/../../include-fixer REALPATH)
include_directories(
${INCLUDE_FIXER_SOURCE_DIR}
)
# We'd like to clang/unittests/Tooling/RewriterTestContext.h in the test.
include_directories(${CLANG_SOURCE_DIR})
add_extra_unittest(IncludeFixerTests
IncludeFixerTest.cpp
)
target_link_libraries(IncludeFixerTests
clangBasic
clangFormat
clangFrontend
clangIncludeFixer
clangRewrite
clangTooling
clangToolingCore
findAllSymbols
)
add_subdirectory(find-all-symbols)