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 |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 8 | ConstantsTest.cpp |
| 9 | DominatorTreeTest.cpp |
Chandler Carruth | ebabadf | 2012-07-16 07:44:45 +0000 | [diff] [blame] | 10 | IRBuilderTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 11 | InstructionsTest.cpp |
Chandler Carruth | ec7ad65 | 2012-07-15 23:26:50 +0000 | [diff] [blame] | 12 | MDBuilderTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 13 | MetadataTest.cpp |
| 14 | PassManagerTest.cpp |
Chandler Carruth | 36e2ecf | 2012-07-15 23:45:24 +0000 | [diff] [blame] | 15 | TypeBuilderTest.cpp |
Benjamin Kramer | 6d29c29 | 2012-08-04 09:52:39 +0000 | [diff] [blame] | 16 | TypesTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 17 | ValueMapTest.cpp |
| 18 | VerifierTest.cpp |
Gabor Greif | fea6a55 | 2012-11-12 10:01:17 +0000 | [diff] [blame] | 19 | WaymarkTest.cpp |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 20 | ) |
| 21 | |
| 22 | # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug. |
| 23 | # See issue#331418 in Visual Studio. |
| 24 | if(MSVC AND MSVC_VERSION LESS 1600) |
Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 25 | list(REMOVE_ITEM IRSources ValueMapTest.cpp) |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 26 | endif() |
| 27 | |
NAKAMURA Takumi | e14e13d | 2012-06-21 22:17:39 +0000 | [diff] [blame] | 28 | # HACK: Declare a couple of source files as optionally compiled to satisfy the |
| 29 | # missing-file-checker in LLVM's weird CMake build. |
| 30 | set(LLVM_OPTIONAL_SOURCES |
| 31 | ValueMapTest.cpp |
| 32 | ) |
| 33 | |
Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 34 | add_llvm_unittest(IRTests |
| 35 | ${IRSources} |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 36 | ) |