20 lines · plain
1# Set the .td file to be processed for this target.2set(LLVM_TARGET_DEFINITIONS Opts.td)3 4tablegen(LLVM Opts.inc -gen-opt-parser-defs)5add_public_tablegen_target(HelloSubTableGen)6 7set(LLVM_LINK_COMPONENTS 8 Support9 Option 10 )11 12add_llvm_example(OptSubcommand13 llvm-hello-sub.cpp 14 )15 16target_include_directories(OptSubcommand17 PRIVATE18 ${CMAKE_CURRENT_BINARY_DIR}19 )20