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