Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS |
| 2 | asmparser |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 3 | core |
| 4 | ipa |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 5 | ) |
| 6 | |
Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 7 | set(IRSources |
Benjamin Kramer | 410780b | 2013-01-12 14:13:45 +0000 | [diff] [blame^] | 8 | AttributesTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 9 | ConstantsTest.cpp |
| 10 | DominatorTreeTest.cpp |
Chandler Carruth | ebabadf | 2012-07-16 07:44:45 +0000 | [diff] [blame] | 11 | IRBuilderTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 12 | InstructionsTest.cpp |
Chandler Carruth | ec7ad65 | 2012-07-15 23:26:50 +0000 | [diff] [blame] | 13 | MDBuilderTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 14 | MetadataTest.cpp |
| 15 | PassManagerTest.cpp |
Chandler Carruth | 36e2ecf | 2012-07-15 23:45:24 +0000 | [diff] [blame] | 16 | TypeBuilderTest.cpp |
Benjamin Kramer | 6d29c29 | 2012-08-04 09:52:39 +0000 | [diff] [blame] | 17 | TypesTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 18 | ValueMapTest.cpp |
| 19 | VerifierTest.cpp |
Gabor Greif | fea6a55 | 2012-11-12 10:01:17 +0000 | [diff] [blame] | 20 | WaymarkTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 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) |
Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 26 | list(REMOVE_ITEM IRSources ValueMapTest.cpp) |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 27 | endif() |
| 28 | |
NAKAMURA Takumi | e14e13d | 2012-06-21 22:17:39 +0000 | [diff] [blame] | 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 | |
Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 35 | add_llvm_unittest(IRTests |
| 36 | ${IRSources} |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 37 | ) |