Fix indentation.
[oota-llvm.git] / utils / unittest / CMakeLists.txt
index 8bdfee15c198e80bb6dbb901855004a4a8f118f9..b6d2d6d9e0e99df82067d6182f3b3c9c15027538 100644 (file)
@@ -14,6 +14,7 @@
 # Where gtest's .h files can be found.
 include_directories(
   googletest/include
+  googletest
   )
 
 if(WIN32)
@@ -38,15 +39,10 @@ if(MSVC AND MSVC_VERSION EQUAL 1700)
 endif ()
 
 add_llvm_library(gtest
-  googletest/gtest.cc
-  googletest/gtest-death-test.cc
-  googletest/gtest-filepath.cc
-  googletest/gtest-port.cc
-  googletest/gtest-printers.cc
-  googletest/gtest-test-part.cc
-  googletest/gtest-typed-test.cc
-  )
+  googletest/src/gtest-all.cc
 
-add_llvm_library(gtest_main
-  UnitTestMain/TestMain.cpp
+  LINK_LIBS
+  LLVMSupport # Depends on llvm::raw_ostream
   )
+
+add_subdirectory(UnitTestMain)