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