| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS |
| NAKAMURA Takumi | b5c4b876 | 2013-12-10 11:13:32 +0000 | [diff] [blame^] | 2 | Analysis |
| 3 | AsmParser |
| 4 | Core |
| 5 | IPA |
| 6 | Support |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 7 | ) |
| 8 | |
| Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 9 | set(IRSources |
| Benjamin Kramer | 410780b | 2013-01-12 14:13:45 +0000 | [diff] [blame] | 10 | AttributesTest.cpp |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 11 | ConstantsTest.cpp |
| 12 | DominatorTreeTest.cpp |
| Chandler Carruth | ebabadf | 2012-07-16 07:44:45 +0000 | [diff] [blame] | 13 | IRBuilderTest.cpp |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 14 | InstructionsTest.cpp |
| Chandler Carruth | 7caea41 | 2013-11-09 12:26:54 +0000 | [diff] [blame] | 15 | LegacyPassManagerTest.cpp |
| Chandler Carruth | ec7ad65 | 2012-07-15 23:26:50 +0000 | [diff] [blame] | 16 | MDBuilderTest.cpp |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 17 | MetadataTest.cpp |
| Chandler Carruth | 90a835d | 2013-11-09 13:09:08 +0000 | [diff] [blame] | 18 | PassManagerTest.cpp |
| Arnold Schwaighofer | eb4f2d6 | 2013-05-05 02:14:28 +0000 | [diff] [blame] | 19 | PatternMatch.cpp |
| Chandler Carruth | 36e2ecf | 2012-07-15 23:45:24 +0000 | [diff] [blame] | 20 | TypeBuilderTest.cpp |
| Benjamin Kramer | 6d29c29 | 2012-08-04 09:52:39 +0000 | [diff] [blame] | 21 | TypesTest.cpp |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 22 | ValueMapTest.cpp |
| Benjamin Kramer | eee73f5 | 2013-04-12 08:33:11 +0000 | [diff] [blame] | 23 | ValueTest.cpp |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 24 | VerifierTest.cpp |
| Gabor Greif | fea6a55 | 2012-11-12 10:01:17 +0000 | [diff] [blame] | 25 | WaymarkTest.cpp |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 26 | ) |
| 27 | |
| 28 | # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug. |
| 29 | # See issue#331418 in Visual Studio. |
| 30 | if(MSVC AND MSVC_VERSION LESS 1600) |
| Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 31 | list(REMOVE_ITEM IRSources ValueMapTest.cpp) |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 32 | endif() |
| 33 | |
| NAKAMURA Takumi | e14e13d | 2012-06-21 22:17:39 +0000 | [diff] [blame] | 34 | # HACK: Declare a couple of source files as optionally compiled to satisfy the |
| 35 | # missing-file-checker in LLVM's weird CMake build. |
| 36 | set(LLVM_OPTIONAL_SOURCES |
| 37 | ValueMapTest.cpp |
| 38 | ) |
| 39 | |
| Chandler Carruth | 74b6a77 | 2013-01-07 15:35:46 +0000 | [diff] [blame] | 40 | add_llvm_unittest(IRTests |
| 41 | ${IRSources} |
| Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 42 | ) |