summaryrefslogtreecommitdiff
path: root/unittests/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-11-24 19:20:05 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-11-24 19:20:05 +0000
commitf2ca4cb86df1d38c439f35774210b16f36841531 (patch)
tree1e34e5b1f175a61d12fc3664b0aa889717c8dc00 /unittests/CMakeLists.txt
parentbf8209daf875fa533a379290a91d01be5152597d (diff)
unittests: Add SystemTests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/CMakeLists.txt')
-rw-r--r--unittests/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
index 76b76f2b88f..41e20cfc902 100644
--- a/unittests/CMakeLists.txt
+++ b/unittests/CMakeLists.txt
@@ -17,6 +17,9 @@ add_custom_target(UnitTests)
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
add_definitions(-DGTEST_HAS_RTTI=0)
+if (NOT LLVM_ENABLE_THREADS)
+ add_definitions(-DGTEST_HAS_PTHREAD=0)
+endif()
set(LLVM_LINK_COMPONENTS
jit
@@ -33,6 +36,7 @@ set(LLVM_LINK_COMPONENTS
set(LLVM_USED_LIBS
gtest
gtest_main
+ LLVMSupport # gtest needs it for raw_ostream.
)
add_llvm_unittest(ADT
@@ -117,7 +121,15 @@ add_llvm_unittest(Support
Support/raw_ostream_test.cpp
Support/RegexTest.cpp
Support/SwapByteOrderTest.cpp
- Support/System.cpp
Support/TypeBuilderTest.cpp
Support/ValueHandleTest.cpp
)
+
+set(LLVM_LINK_COMPONENTS
+ System
+ )
+
+add_llvm_unittest(System
+ System/Path.cpp
+ System/TimeValue.cpp
+ )