Oscar Fuentes | b1f9380 | 2010-10-28 14:38:35 +0000 | [diff] [blame] | 1 | add_custom_target(UnitTests) |
Oscar Fuentes | 3145e92 | 2011-02-20 22:06:10 +0000 | [diff] [blame] | 2 | set_target_properties(UnitTests PROPERTIES FOLDER "Tests") |
Oscar Fuentes | b1f9380 | 2010-10-28 14:38:35 +0000 | [diff] [blame] | 3 | |
Rafael Espindola | 9e806cf | 2014-02-28 16:11:03 +0000 | [diff] [blame] | 4 | if (APPLE) |
| 5 | set(CMAKE_INSTALL_RPATH "@executable_path/../../lib") |
| 6 | else(UNIX) |
Chandler Carruth | a78e24e | 2014-12-29 11:16:19 +0000 | [diff] [blame^] | 7 | set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib${LLVM_LIBDIR_SUFFIX}") |
Rafael Espindola | 9e806cf | 2014-02-28 16:11:03 +0000 | [diff] [blame] | 8 | endif() |
| 9 | |
Chandler Carruth | a5d42f8 | 2012-06-21 05:16:58 +0000 | [diff] [blame] | 10 | function(add_llvm_unittest test_dirname) |
| 11 | add_unittest(UnitTests ${test_dirname} ${ARGN}) |
| 12 | endfunction() |
Frits van Bommel | 716f34c | 2010-12-07 10:22:07 +0000 | [diff] [blame] | 13 | |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 14 | add_subdirectory(ADT) |
| 15 | add_subdirectory(Analysis) |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 16 | add_subdirectory(Bitcode) |
Eric Christopher | 25b7adc | 2013-09-03 21:57:57 +0000 | [diff] [blame] | 17 | add_subdirectory(CodeGen) |
Eric Christopher | c2fa3a4 | 2013-09-03 20:51:14 +0000 | [diff] [blame] | 18 | add_subdirectory(DebugInfo) |
| 19 | add_subdirectory(ExecutionEngine) |
| 20 | add_subdirectory(IR) |
Peter Collingbourne | c7d437c | 2014-01-31 23:46:14 +0000 | [diff] [blame] | 21 | add_subdirectory(LineEditor) |
NAKAMURA Takumi | 4b8e8e9 | 2014-04-29 15:52:36 +0000 | [diff] [blame] | 22 | add_subdirectory(Linker) |
Rafael Espindola | bab2afb | 2013-10-16 18:26:16 +0000 | [diff] [blame] | 23 | add_subdirectory(MC) |
Michael J. Spencer | 41ee041 | 2012-12-05 00:29:32 +0000 | [diff] [blame] | 24 | add_subdirectory(Option) |
Chandler Carruth | 94d0251 | 2012-06-21 09:51:26 +0000 | [diff] [blame] | 25 | add_subdirectory(Support) |
| 26 | add_subdirectory(Transforms) |