-add_llvm_example(Kaleidoscope-Ch7
- toy.cpp
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ ExecutionEngine
+ InstCombine
+ Object
+ RuntimeDyld
+ ScalarOpts
+ Support
+ native
)
-add_llvm_link_components(Kaleidoscope-Ch7 jit interpreter native)
-target_link_libraries(Kaleidoscope-Ch7 LLVMCore)
+add_kaleidoscope_chapter(Kaleidoscope-Ch7
+ toy.cpp
+ )