2010-10-28 14:38:35 +00:00
|
|
|
add_custom_target(UnitTests)
|
2011-02-20 22:06:10 +00:00
|
|
|
set_target_properties(UnitTests PROPERTIES FOLDER "Tests")
|
2010-10-28 14:38:35 +00:00
|
|
|
|
2014-02-28 16:11:03 +00:00
|
|
|
if (APPLE)
|
|
|
|
set(CMAKE_INSTALL_RPATH "@executable_path/../../lib")
|
|
|
|
else(UNIX)
|
2014-12-29 11:16:19 +00:00
|
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib${LLVM_LIBDIR_SUFFIX}")
|
2014-02-28 16:11:03 +00:00
|
|
|
endif()
|
|
|
|
|
2012-06-21 05:16:58 +00:00
|
|
|
function(add_llvm_unittest test_dirname)
|
|
|
|
add_unittest(UnitTests ${test_dirname} ${ARGN})
|
|
|
|
endfunction()
|
2010-12-07 10:22:07 +00:00
|
|
|
|
2012-06-21 09:51:26 +00:00
|
|
|
add_subdirectory(ADT)
|
|
|
|
add_subdirectory(Analysis)
|
|
|
|
add_subdirectory(Bitcode)
|
2013-09-03 21:57:57 +00:00
|
|
|
add_subdirectory(CodeGen)
|
2013-09-03 20:51:14 +00:00
|
|
|
add_subdirectory(DebugInfo)
|
|
|
|
add_subdirectory(ExecutionEngine)
|
|
|
|
add_subdirectory(IR)
|
2014-01-31 23:46:14 +00:00
|
|
|
add_subdirectory(LineEditor)
|
2014-04-29 15:52:36 +00:00
|
|
|
add_subdirectory(Linker)
|
2013-10-16 18:26:16 +00:00
|
|
|
add_subdirectory(MC)
|
2012-12-05 00:29:32 +00:00
|
|
|
add_subdirectory(Option)
|
2015-02-04 00:15:12 +00:00
|
|
|
add_subdirectory(ProfileData)
|
2012-06-21 09:51:26 +00:00
|
|
|
add_subdirectory(Support)
|
|
|
|
add_subdirectory(Transforms)
|