summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-readobj/CMakeLists.txt')
-rw-r--r--tools/llvm-readobj/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/llvm-readobj/CMakeLists.txt b/tools/llvm-readobj/CMakeLists.txt
index be80469f28d5..3d20def8f51c 100644
--- a/tools/llvm-readobj/CMakeLists.txt
+++ b/tools/llvm-readobj/CMakeLists.txt
@@ -1,5 +1,15 @@
-set(LLVM_LINK_COMPONENTS archive bitreader object)
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ archive
+ bitreader
+ object)
add_llvm_tool(llvm-readobj
llvm-readobj.cpp
+ ObjDumper.cpp
+ COFFDumper.cpp
+ ELFDumper.cpp
+ MachODumper.cpp
+ Error.cpp
+ StreamWriter.cpp
)