mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
fec0c6fa56
edis shared library in the Makefile build, also stop building it in the CMake build. Patch by arrowdodger! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139108 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
667 B
CMake
22 lines
667 B
CMake
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(SOURCES
|
|
../../include/llvm-c/EnhancedDisassembly.h
|
|
EDMain.cpp
|
|
)
|
|
|
|
set(EDIS_DEPENDS LLVMMCDisassembler LLVMMCParser)
|
|
if( LLVM_TARGETS_TO_BUILD MATCHES X86 )
|
|
list(APPEND EDIS_DEPENDS LLVMX86AsmPrinter LLVMX86AsmParser LLVMX86Disassembler LLVMX86Desc)
|
|
endif()
|
|
if( LLVM_TARGETS_TO_BUILD MATCHES ARM )
|
|
list(APPEND EDIS_DEPENDS LLVMARMAsmPrinter LLVMARMAsmParser LLVMARMDisassembler LLVMARMDesc)
|
|
endif()
|
|
|
|
add_llvm_library(EnhancedDisassembly ${SOURCES})
|
|
set_property(TARGET EnhancedDisassembly PROPERTY
|
|
OUTPUT_NAME "EnhancedDisassembly")
|
|
|
|
add_llvm_library_dependencies(EnhancedDisassembly
|
|
${EDIS_DEPENDS})
|