CMake: Builds and installs clang binary and libs (no docs yet). It
must be under the `tools' subdirectory of the LLVM *source* tree.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58180 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..ccc1158
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,26 @@
+macro(add_clang_library name)
+  add_library( ${name} ${ARGN} )
+  if( LLVM_COMMON_DEPENDS )
+    add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
+  endif( LLVM_COMMON_DEPENDS )
+  install(TARGETS ${name}
+    LIBRARY DESTINATION lib
+    ARCHIVE DESTINATION lib)
+endmacro(add_clang_library)
+
+macro(add_clang_executable name)
+  add_llvm_executable( ${name} ${ARGN} )
+  install(TARGETS ${name}
+    RUNTIME DESTINATION bin)
+endmacro(add_clang_executable)
+
+include_directories(
+  ${CMAKE_CURRENT_SOURCE_DIR}/include
+  )
+
+add_definitions( -D_GNU_SOURCE )
+
+add_subdirectory(lib)
+add_subdirectory(Driver)
+
+# TODO: docs.