summaryrefslogtreecommitdiff
path: root/unittests/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/VMCore')
-rw-r--r--unittests/VMCore/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/unittests/VMCore/CMakeLists.txt b/unittests/VMCore/CMakeLists.txt
new file mode 100644
index 0000000000..04eabf0b9e
--- /dev/null
+++ b/unittests/VMCore/CMakeLists.txt
@@ -0,0 +1,27 @@
+set(LLVM_LINK_COMPONENTS
+ asmparser
+ analysis
+ core
+ ipa
+ target
+ )
+
+set(VMCoreSources
+ ConstantsTest.cpp
+ DominatorTreeTest.cpp
+ InstructionsTest.cpp
+ MetadataTest.cpp
+ PassManagerTest.cpp
+ ValueMapTest.cpp
+ VerifierTest.cpp
+ )
+
+# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
+# See issue#331418 in Visual Studio.
+if(MSVC AND MSVC_VERSION LESS 1600)
+ list(REMOVE_ITEM VMCoreSources ValueMapTest.cpp)
+endif()
+
+add_llvm_unittest(VMCoreTests
+ ${VMCoreSources}
+ )