X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=unittests%2FCMakeLists.txt;h=e5befcec6e0f1cf47ada1a66cad295f5fb91501f;hp=9857e787eebee522c60c0c181674f9198b20a88c;hb=aad888f28ee3e920b6e1a3828398f6c9c256f3d3;hpb=04946d54db28d963a330f4d390c433069ac36da8 diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 9857e787eeb..e5befcec6e0 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -1,20 +1,28 @@ add_custom_target(UnitTests) set_target_properties(UnitTests PROPERTIES FOLDER "Tests") +if (APPLE) + set(CMAKE_INSTALL_RPATH "@executable_path/../../lib") +else(UNIX) + set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib${LLVM_LIBDIR_SUFFIX}") +endif() + function(add_llvm_unittest test_dirname) add_unittest(UnitTests ${test_dirname} ${ARGN}) endfunction() add_subdirectory(ADT) add_subdirectory(Analysis) -add_subdirectory(ArchiveFileDescriptor) +add_subdirectory(AsmParser) add_subdirectory(Bitcode) add_subdirectory(CodeGen) add_subdirectory(DebugInfo) add_subdirectory(ExecutionEngine) add_subdirectory(IR) +add_subdirectory(LineEditor) +add_subdirectory(Linker) add_subdirectory(MC) -add_subdirectory(Object) add_subdirectory(Option) +add_subdirectory(ProfileData) add_subdirectory(Support) add_subdirectory(Transforms)