set(LLVM_LINK_COMPONENTS
  support
  )

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-query
  )

add_extra_unittest(ClangQueryTests
  QueryEngineTest.cpp
  QueryParserTest.cpp
  )

target_link_libraries(ClangQueryTests
  clangAST
  clangASTMatchers
  clangBasic
  clangDynamicASTMatchers
  clangQuery
  clangTooling
  )

set(LLVM_LINK_COMPONENTS
  support
  )

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-query
  )

add_extra_unittest(ClangQueryTests
  QueryEngineTest.cpp
  QueryParserTest.cpp
  )

target_link_libraries(ClangQueryTests
  clangAST
  clangASTMatchers
  clangBasic
  clangDynamicASTMatchers
  clangFrontend
  clangQuery
  clangTooling
  )

Add missing dependency clangFrontend to unit test.
Add missing dependency clangFrontend to unit test.

git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@240226 91177308-0d34-0410-b5e6-96231b3b80d8
