llvm/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/CMakeLists.txt

lldb_tablegen(DynamicLoaderDarwinKernelProperties.inc -gen-lldb-property-defs
  SOURCE DynamicLoaderDarwinKernelProperties.td
  TARGET LLDBPluginDynamicLoaderDarwinKernelPropertiesGen)

lldb_tablegen(DynamicLoaderDarwinKernelPropertiesEnum.inc -gen-lldb-property-enum-defs
  SOURCE DynamicLoaderDarwinKernelProperties.td
  TARGET LLDBPluginDynamicLoaderDarwinKernelPropertiesEnumGen)

add_lldb_library(lldbPluginDynamicLoaderDarwinKernel PLUGIN
  DynamicLoaderDarwinKernel.cpp

  LINK_LIBS
    lldbBreakpoint
    lldbCore
    lldbHost
    lldbInterpreter
    lldbSymbol
    lldbTarget
    lldbUtility
    lldbPluginObjectFileMachO
  )

add_dependencies(lldbPluginDynamicLoaderDarwinKernel
  LLDBPluginDynamicLoaderDarwinKernelPropertiesGen
  LLDBPluginDynamicLoaderDarwinKernelPropertiesEnumGen)