Add a unit test to verifies that attribute uniquing works so it doesn't break again.
[oota-llvm.git] / unittests / IR / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   core
4   ipa
5   )
6
7 set(IRSources
8   AttributesTest.cpp
9   ConstantsTest.cpp
10   DominatorTreeTest.cpp
11   IRBuilderTest.cpp
12   InstructionsTest.cpp
13   MDBuilderTest.cpp
14   MetadataTest.cpp
15   PassManagerTest.cpp
16   TypeBuilderTest.cpp
17   TypesTest.cpp
18   ValueMapTest.cpp
19   VerifierTest.cpp
20   WaymarkTest.cpp
21   )
22
23 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
24 # See issue#331418 in Visual Studio.
25 if(MSVC AND MSVC_VERSION LESS 1600)
26   list(REMOVE_ITEM IRSources ValueMapTest.cpp)
27 endif()
28
29 # HACK: Declare a couple of source files as optionally compiled to satisfy the
30 # missing-file-checker in LLVM's weird CMake build.
31 set(LLVM_OPTIONAL_SOURCES
32   ValueMapTest.cpp
33   )
34
35 add_llvm_unittest(IRTests
36   ${IRSources}
37   )