Builds llvmc and its examples with CMake.
[oota-llvm.git] / tools / llvmc / CMakeLists.txt
index 10ad5d82009f18ebd4919099d30d86fba7730dc4..ff7cbae4837fa489d459f1848f800e82220575cf 100644 (file)
@@ -1,4 +1,8 @@
-add_subdirectory(src)
+add_subdirectory(src)
 
 # TODO: support plugins and user-configured builds.
 # See ./doc/LLVMC-Reference.rst "Customizing LLVMC: the compilation graph"
+
+if( LLVM_INCLUDE_EXAMPLES )
+  add_subdirectory(examples)
+endif()