1 add_custom_target(UnitTests) 2 set_target_properties(UnitTests PROPERTIES FOLDER "Tests") 3 4 if (APPLE) 5 set(CMAKE_INSTALL_RPATH "@executable_path/../../lib") 6 else(UNIX) 7 set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib${LLVM_LIBDIR_SUFFIX}") 8 endif() 9 10 function(add_llvm_unittest test_dirname) 11 add_unittest(UnitTests ${test_dirname} ${ARGN}) 12 endfunction() 13 14 add_subdirectory(ADT) 15 add_subdirectory(Analysis) 16 add_subdirectory(Bitcode) 17 add_subdirectory(CodeGen) 18 add_subdirectory(DebugInfo) 19 add_subdirectory(ExecutionEngine) 20 add_subdirectory(IR) 21 add_subdirectory(LineEditor) 22 add_subdirectory(Linker) 23 add_subdirectory(MC) 24 add_subdirectory(Option) 25 add_subdirectory(ProfileData) 26 add_subdirectory(Support) 27 add_subdirectory(Transforms) 28