[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / tools / llvm-exegesis / CMakeLists.txt
blobec418a7d51ecc01717db076874506a678c321bd2
1 set(LLVM_LINK_COMPONENTS
2   AllTargetsAsmParsers
3   AllTargetsCodeGens
4   AllTargetsDescs
5   AllTargetsDisassemblers
6   AllTargetsInfos
7   CodeGenTypes
8   MC
9   MCParser
10   Support
11   TargetParser
12   )
14 add_llvm_tool(llvm-exegesis
15   DISABLE_LLVM_LINK_LLVM_DYLIB
16   llvm-exegesis.cpp
18   DEPENDS
19   intrinsics_gen
20   )
22 # Has side effect of defining LLVM_EXEGESIS_TARGETS
23 add_subdirectory(lib)
25 # Link all enabled exegesis targets
26 set(libs)
27 foreach(t ${LLVM_EXEGESIS_TARGETS})
28   string(STRIP ${t} t)
29   list(APPEND libs "LLVMExegesis${t}")
30 endforeach()
32 target_link_libraries(llvm-exegesis PRIVATE
33   LLVMExegesis
34   ${libs}
35   )