Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sure
[oota-llvm.git] / examples / Kaleidoscope / Chapter6 / CMakeLists.txt
index 002e0d4670beb8f75d3220cb5d32258a4db2314c..49627f07ddf05ece09bdcac0bf8d9f46cb163c2b 100644 (file)
@@ -1,6 +1,17 @@
-add_llvm_example(Kaleidoscope-Ch6
+set(LLVM_LINK_COMPONENTS
+  Analysis
+  Core
+  ExecutionEngine
+  InstCombine
+  Object
+  RuntimeDyld
+  ScalarOpts
+  Support
+  native
+  )
+
+add_kaleidoscope_chapter(Kaleidoscope-Ch6
   toy.cpp
   )
 
-add_llvm_link_components(Kaleidoscope-Ch6 jit interpreter native)
-target_link_libraries(Kaleidoscope-Ch6 LLVMCore)
+export_executable_symbols(Kaleidoscope-Ch6)