[CMake] Add dependencies to gtest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2014-02-10 11:27:41 +00:00
parent bf6f7a713f
commit ac27d7151c
2 changed files with 11 additions and 0 deletions

View File

@ -42,4 +42,9 @@ add_llvm_library(gtest
googletest/src/gtest-all.cc
)
# Depends on llvm::raw_ostream
target_link_libraries(gtest
LLVMSupport
)
add_subdirectory(UnitTestMain)

View File

@ -1,3 +1,9 @@
add_llvm_library(gtest_main
TestMain.cpp
)
# Depends on llvm::cl
target_link_libraries(gtest_main
gtest
LLVMSupport
)