Add mention of GHC to external OS projects.
[oota-llvm.git] / tools / edis / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_BINARY_DIR})
2
3 set(SOURCES
4   ../../include/llvm-c/EnhancedDisassembly.h
5   EDMain.cpp
6   )
7
8 set(EDIS_DEPENDS LLVMMCDisassembler LLVMMCParser)
9 if( LLVM_TARGETS_TO_BUILD MATCHES X86 )
10   list(APPEND EDIS_DEPENDS LLVMX86AsmPrinter LLVMX86AsmParser LLVMX86Disassembler LLVMX86Desc)
11 endif()
12 if( LLVM_TARGETS_TO_BUILD MATCHES ARM )
13   list(APPEND EDIS_DEPENDS LLVMARMAsmPrinter LLVMARMAsmParser LLVMARMDisassembler LLVMARMDesc)
14 endif()
15
16 add_llvm_library(EnhancedDisassembly ${SOURCES})
17 set_property(TARGET EnhancedDisassembly PROPERTY
18   OUTPUT_NAME "EnhancedDisassembly")
19
20 add_llvm_library_dependencies(EnhancedDisassembly
21   ${EDIS_DEPENDS})