aboutsummaryrefslogtreecommitdiff
path: root/llvm/examples/OptSubcommand/CMakeLists.txt
blob: debc948611866e8c96149120aa97a3c0d0a283dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Set the .td file to be processed for this target.
set(LLVM_TARGET_DEFINITIONS Opts.td)

tablegen(LLVM Opts.inc -gen-opt-parser-defs)
add_public_tablegen_target(HelloSubTableGen)

set(LLVM_LINK_COMPONENTS  
  Support
  Option  
  )

add_llvm_example(OptSubcommand
  llvm-hello-sub.cpp  
  )

target_include_directories(OptSubcommand
  PRIVATE
  ${CMAKE_CURRENT_BINARY_DIR}
  )