1 # Has side effect of defining LLVM_EXEGESIS_TARGETS
4 set(LLVM_LINK_COMPONENTS
12 foreach(t ${LLVM_EXEGESIS_TARGETS})
14 list(APPEND LLVM_LINK_COMPONENTS "${t}AsmParser")
15 list(APPEND LLVM_LINK_COMPONENTS "${t}CodeGen")
16 list(APPEND LLVM_LINK_COMPONENTS "${t}Desc")
17 list(APPEND LLVM_LINK_COMPONENTS "${t}Disassembler")
18 list(APPEND LLVM_LINK_COMPONENTS "${t}Info")
21 add_llvm_tool(llvm-exegesis
22 DISABLE_LLVM_LINK_LLVM_DYLIB
29 # Link all enabled exegesis targets
31 foreach(t ${LLVM_EXEGESIS_TARGETS})
33 list(APPEND libs "LLVMExegesis${t}")
36 target_link_libraries(llvm-exegesis PRIVATE