1 # tablegen targets get exported via llvm for LLVMConfig.cmake. So standalone
2 # builds of lldb can potentially import this via LLVMConfig and also attempt to
3 # build it in tree. So only build it if it doesn't exist.
4 if (NOT DEFINED LLDB_TABLEGEN_EXE)
5 if (TARGET lldb-tblgen)
6 set(LLDB_TABLEGEN_EXE $<TARGET_FILE:lldb-tblgen> CACHE STRING "")
8 set(LLVM_LINK_COMPONENTS Support)
10 add_tablegen(lldb-tblgen LLDB
11 LLDBOptionDefEmitter.cpp
12 LLDBPropertyDefEmitter.cpp
16 set_target_properties(lldb-tblgen PROPERTIES FOLDER "LLDB tablegenning")