summaryrefslogtreecommitdiffstats
path: root/lib/MC/MCDisassembler/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-20 18:33:21 +0000
committerChris Lattner <sabre@nondot.org>2010-07-20 18:33:21 +0000
commitfed3fed2515b72b428b4ae6028d3e8a958540d0e (patch)
tree9d0ee0106536eb6cf016875fad0da4111e849562 /lib/MC/MCDisassembler/CMakeLists.txt
parentfeb9cf4581b5f88c10bd9031845ea54ba2c55090 (diff)
downloadexternal_llvm-fed3fed2515b72b428b4ae6028d3e8a958540d0e.zip
external_llvm-fed3fed2515b72b428b4ae6028d3e8a958540d0e.tar.gz
external_llvm-fed3fed2515b72b428b4ae6028d3e8a958540d0e.tar.bz2
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
Diffstat (limited to 'lib/MC/MCDisassembler/CMakeLists.txt')
-rw-r--r--lib/MC/MCDisassembler/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/MC/MCDisassembler/CMakeLists.txt b/lib/MC/MCDisassembler/CMakeLists.txt
index 878c3c332..55c0dec 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
)