2010-04-13 20:52:50 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2011-03-12 22:01:47 +00:00
|
|
|
set(SOURCES
|
2010-04-13 20:52:50 +00:00
|
|
|
../../include/llvm-c/EnhancedDisassembly.h
|
2010-07-20 21:21:27 +00:00
|
|
|
EDMain.cpp
|
2011-03-12 22:01:47 +00:00
|
|
|
)
|
2010-04-13 20:52:50 +00:00
|
|
|
|
2011-07-29 15:41:39 +00:00
|
|
|
set(EDIS_DEPENDS LLVMMCDisassembler LLVMMCParser)
|
2011-03-12 22:01:47 +00:00
|
|
|
if( LLVM_TARGETS_TO_BUILD MATCHES X86 )
|
2011-07-29 15:41:39 +00:00
|
|
|
list(APPEND EDIS_DEPENDS LLVMX86AsmPrinter LLVMX86AsmParser LLVMX86Disassembler LLVMX86Desc)
|
2011-03-12 22:01:47 +00:00
|
|
|
endif()
|
|
|
|
if( LLVM_TARGETS_TO_BUILD MATCHES ARM )
|
2011-07-29 15:41:39 +00:00
|
|
|
list(APPEND EDIS_DEPENDS LLVMARMAsmPrinter LLVMARMAsmParser LLVMARMDisassembler LLVMARMDesc)
|
2011-03-12 22:01:47 +00:00
|
|
|
endif()
|
2010-04-13 22:47:43 +00:00
|
|
|
|
2011-09-04 23:32:05 +00:00
|
|
|
add_llvm_library(EnhancedDisassembly ${SOURCES})
|
|
|
|
set_property(TARGET EnhancedDisassembly PROPERTY
|
|
|
|
OUTPUT_NAME "EnhancedDisassembly")
|
2011-03-12 22:01:47 +00:00
|
|
|
|
2011-09-04 23:32:05 +00:00
|
|
|
add_llvm_library_dependencies(EnhancedDisassembly
|
|
|
|
${EDIS_DEPENDS})
|