X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=unittests%2FCMakeLists.txt;h=e5befcec6e0f1cf47ada1a66cad295f5fb91501f;hb=32a41ddf2de7265777da88d072204ac8949b9cd5;hp=9857e787eebee522c60c0c181674f9198b20a88c;hpb=2fcb0c34b324bb7fb80f74b8d14db8cfd2892916;p=oota-llvm.git 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)