From: Chris Lattner Date: Tue, 20 Jul 2010 18:33:21 +0000 (+0000) Subject: hopefully teach cmake to build the .inc file. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fed3fed2515b72b428b4ae6028d3e8a958540d0e;p=oota-llvm.git hopefully teach cmake to build the .inc file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108874 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCDisassembler/CMakeLists.txt b/lib/MC/MCDisassembler/CMakeLists.txt index 878c3c332d4..55c0dec1a41 100644 --- a/lib/MC/MCDisassembler/CMakeLists.txt +++ b/lib/MC/MCDisassembler/CMakeLists.txt @@ -1,6 +1,15 @@ + +add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc + COMMAND ${LLVM_TABLEGEN_EXE} -o ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc + -gen-enhanced-disassembly-header + DEPENDS tblgen + COMMENT "Building enhanced disassembly semantic information header (EDInfo.inc)") +set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc PROPERTIES GENERATED 1) + add_llvm_library(LLVMMCDisassembler EDDisassembler.cpp EDOperand.cpp EDInst.cpp EDToken.cpp + ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc )