# Where gtest's .h files can be found.
include_directories(
googletest/include
+ googletest
)
if(WIN32)
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)